Class TcpBufferedInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.activemq.transport.tcp.TcpBufferedInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
An optimized buffered input stream for Tcp
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected byte[]protected intFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
mark, read, resetMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
internalBuffer
protected byte[] internalBuffer -
count
protected int count -
position
protected int position
-
-
Constructor Details
-
TcpBufferedInputStream
-
TcpBufferedInputStream
-
-
Method Details
-
fill
- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
available
- Overrides:
availablein classFilterInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classFilterInputStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
unread
- Parameters:
array-- Throws:
IOException
-