public class ByteBufferInputStream extends InputStream
ByteBuffer. This class IS NOT thread-safe. Caller's MUST
ByteBufferbefore creating an instance of this class if they wish to avoid side-effects on the position and limit of the original
ByteBuffer.asReadOnlyBuffer()and pass the result into the constructor instead., dsiutils now defines its own implementation of this but does not define a ByteBufferOutputStream class. if it did, then we might just use its implementations instead.
|Modifier and Type||Method and Description|
Read the next byte from the buffer.
available, close, mark, markSupported, read, reset, skip
public ByteBufferInputStream(ByteBuffer buf)
public int read() throws IOException
Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.