Package org.astrogrid.samp.web
Class LoggingCorsHttpServer.CountOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.astrogrid.samp.web.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)
-