org.das2.util.ByteBufferInputStream
An input stream that wraps an NIO ByteBuffer. Reading from this stream
will update the ByteBuffers position. Calling mark() on this input stream
will set the mark on the underlying buffer.
Creates a new instance of ByteBufferInputStream
available
available( ) → int
Returns:
int
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
close
close( ) → void
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getByteBuffer
getByteBuffer( ) → java.nio.ByteBuffer
Returns:
java.nio.ByteBuffer
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
mark
mark( int readlimit ) → void
Parameters
readlimit - an int
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
markSupported
markSupported( ) → boolean
Returns:
boolean
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
read
read( ) → int
Returns:
int
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
read( byte[] b ) → int
read( byte[] b, int off, int len ) → int
reset
reset( ) → void
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
skip
skip( long n ) → long
Parameters
n - a long
Returns:
long
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]