Package com.swiftmq.impl.net.netty
Class CountableBufferedInputStream
java.lang.Object
java.io.InputStream
com.swiftmq.impl.net.netty.CountableBufferedInputStream
- All Implemented Interfaces:
Countable,Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddByteCount(long cnt) intlongintread()intread(byte[] b, int offset, int len) voidMethods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
CountableBufferedInputStream
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- 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
-