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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addByteCount
(long cnt) int
long
int
read()
int
read
(byte[] b, int offset, int len) void
Methods 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:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
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
-