Package org.capnproto
Class BufferedInputStreamWrapper
- java.lang.Object
-
- org.capnproto.BufferedInputStreamWrapper
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ReadableByteChannel,BufferedInputStream
public final class BufferedInputStreamWrapper extends Object implements BufferedInputStream
-
-
Constructor Summary
Constructors Constructor Description BufferedInputStreamWrapper(ReadableByteChannel chan)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ByteBuffergetReadBuffer()booleanisOpen()intread(ByteBuffer dst)static intreadAtLeast(ReadableByteChannel reader, ByteBuffer buf, int minBytes)
-
-
-
Constructor Detail
-
BufferedInputStreamWrapper
public BufferedInputStreamWrapper(ReadableByteChannel chan)
-
-
Method Detail
-
read
public final int read(ByteBuffer dst) throws IOException
- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-
getReadBuffer
public final ByteBuffer getReadBuffer() throws IOException
- Specified by:
getReadBufferin interfaceBufferedInputStream- Throws:
IOException
-
close
public final void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
readAtLeast
public static int readAtLeast(ReadableByteChannel reader, ByteBuffer buf, int minBytes) throws IOException
- Throws:
IOException
-
-