Package io.fusionauth.http.server.io
Class ThroughputOutputStream
java.lang.Object
java.io.OutputStream
io.fusionauth.http.server.io.ThroughputOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Intercepts each OutputStream method and sends the number of bytes to the Throughput object.
- Author:
- Brian Pontarelli
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
ThroughputOutputStream
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-