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, skipBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
skipBytesFully
public 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
RebufferingInputStream
reBuffer
in class RebufferingInputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
Copyright © 2015 The Apache Software Foundation