public class NIODataInputStream extends RebufferingInputStream
DataInputPlus.DataInputStreamPlus| Modifier and Type | Field and Description |
|---|---|
protected java.nio.channels.ReadableByteChannel |
channel |
buffer| Constructor and Description |
|---|
NIODataInputStream(java.nio.channels.ReadableByteChannel channel,
java.nio.ByteBuffer buffer) |
NIODataInputStream(java.nio.channels.ReadableByteChannel channel,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
protected void |
reBuffer()
Implementations must implement this method to refill the buffer.
|
markSupported, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readPrimitiveSlowly, readShort, readUnsignedByte, readUnsignedShort, readUnsignedVInt, readUTF, readVInt, reset, skipBytesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitskipBytesFullypublic NIODataInputStream(java.nio.channels.ReadableByteChannel channel,
java.nio.ByteBuffer buffer)
public NIODataInputStream(java.nio.channels.ReadableByteChannel channel,
int bufferSize)
protected void reBuffer()
throws java.io.IOException
RebufferingInputStreamreBuffer in class RebufferingInputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionCopyright © 2016 The Apache Software Foundation