| java.lang.Object java.io.InputStream com.sun.xml.ws.transport.tcp.io.ByteBufferInputStream
ByteBufferInputStream | public class ByteBufferInputStream extends InputStream (Code) | | Stream wrapper around a ByteBuffer
|
Method Summary | |
public int | available() | public void | close() Close this stream. | public boolean | markSupported() Return true if mark is supported. | public int | read() Read the first byte from the wrapped ByteBuffer . | public int | read(byte[] b) Read the bytes from the wrapped ByteBuffer . | public int | read(byte[] b, int offset, int length) Read the first byte of the wrapped ByteBuffer . | public void | setByteBuffer(ByteBuffer byteBuffer) |
ByteBufferInputStream | public ByteBufferInputStream(ByteBuffer byteBuffer)(Code) | | |
available | public int available()(Code) | | Return the available bytes
the wrapped byteBuffer.remaining() |
close | public void close()(Code) | | Close this stream.
|
markSupported | public boolean markSupported()(Code) | | Return true if mark is supported.
|
read | public int read()(Code) | | Read the first byte from the wrapped ByteBuffer .
|
read | public int read(byte[] b)(Code) | | Read the bytes from the wrapped ByteBuffer .
|
read | public int read(byte[] b, int offset, int length)(Code) | | Read the first byte of the wrapped ByteBuffer .
|
setByteBuffer | public void setByteBuffer(ByteBuffer byteBuffer)(Code) | | Set the wrapped ByteBuffer
Parameters: byteBuffer - The wrapped byteBuffer |
|
|