Class LoggingCorsHttpServer.CountOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
    Enclosing class:
    LoggingCorsHttpServer

    private static class LoggingCorsHttpServer.CountOutputStream
    extends java.io.OutputStream
    OutputStream subclass which counts the number of bytes it is being asked to write, but otherwise does nothing.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long count_  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CountOutputStream()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(byte[] b)  
      void write​(byte[] b, int off, int len)  
      void write​(int b)  
      • Methods inherited from class java.io.OutputStream

        close, flush, nullOutputStream
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • count_

        long count_
    • Constructor Detail

      • CountOutputStream

        private CountOutputStream()
    • Method Detail

      • write

        public void write​(byte[] b)
        Overrides:
        write in class java.io.OutputStream
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
        Overrides:
        write in class java.io.OutputStream
      • write

        public void write​(int b)
        Specified by:
        write in class java.io.OutputStream