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
-
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:
ClosedChannelException
IOException
-
NIOBufferedInputStream
public NIOBufferedInputStream(ReadableByteChannel channel) throws ClosedChannelException, IOException - Throws:
ClosedChannelException
IOException
-
-
Method Details
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-