Package com.swiftmq.impl.net.netty
Class CountableInput
java.lang.Object
java.io.InputStream
com.swiftmq.impl.net.netty.CountableInput
- All Implemented Interfaces:
Countable
,Closeable
,AutoCloseable
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
CountableInput
public CountableInput()
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
addByteCount
public void addByteCount(long cnt) - Specified by:
addByteCount
in interfaceCountable
-
getByteCount
public long getByteCount()- Specified by:
getByteCount
in interfaceCountable
-
resetByteCount
public void resetByteCount()- Specified by:
resetByteCount
in interfaceCountable
-