Class NIOBufferedInputStream
java.lang.Object
java.io.InputStream
org.apache.activemq.transport.nio.NIOBufferedInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Implementation of InputStream using Java NIO channel,direct buffer and
Selector
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Constructor Details
-
NIOBufferedInputStream
public NIOBufferedInputStream(ReadableByteChannel channel, int size) throws ClosedChannelException, IOException - Throws:
ClosedChannelExceptionIOException
-
NIOBufferedInputStream
public NIOBufferedInputStream(ReadableByteChannel channel) throws ClosedChannelException, IOException - Throws:
ClosedChannelExceptionIOException
-
-
Method Details
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-