Package com.swiftmq.impl.net.netty
Class CountableBufferedOutputStream
java.lang.Object
java.io.OutputStream
com.swiftmq.impl.net.netty.CountableBufferedOutputStream
- All Implemented Interfaces:
Countable,Closeable,Flushable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionCountableBufferedOutputStream(ProtocolOutputHandler protocolOutputHandler, SocketChannel channel) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddByteCount(long cnt) voidflush()longintperformWrite(byte[] b, int offset, int len) voidvoidwrite(byte[] b, int offset, int len) voidwrite(int b) Methods inherited from class java.io.OutputStream
close, nullOutputStream, write
-
Constructor Details
-
CountableBufferedOutputStream
public CountableBufferedOutputStream(ProtocolOutputHandler protocolOutputHandler, SocketChannel channel)
-
-
Method Details
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
performWrite
- Throws:
IOException
-
addByteCount
public void addByteCount(long cnt) - Specified by:
addByteCountin interfaceCountable
-
getByteCount
public long getByteCount()- Specified by:
getByteCountin interfaceCountable
-
resetByteCount
public void resetByteCount()- Specified by:
resetByteCountin interfaceCountable
-