|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
com.sun.xml.ws.transport.tcp.io.ByteBufferInputStream
public class ByteBufferInputStream
Stream wrapper around a ByteBuffer
| Constructor Summary | |
|---|---|
ByteBufferInputStream(ByteBuffer byteBuffer)
|
|
| Method Summary | |
|---|---|
int |
available()
Return the available bytes |
void |
close()
Close this stream. |
boolean |
markSupported()
Return true if mark is supported. |
int |
read()
Read the first byte from the wrapped ByteBuffer. |
int |
read(byte[] b)
Read the bytes from the wrapped ByteBuffer. |
int |
read(byte[] b,
int offset,
int length)
Read the first byte of the wrapped ByteBuffer. |
void |
setByteBuffer(ByteBuffer byteBuffer)
Set the wrapped ByteBuffer |
| Methods inherited from class java.io.InputStream |
|---|
mark, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteBufferInputStream(ByteBuffer byteBuffer)
| Method Detail |
|---|
public void setByteBuffer(ByteBuffer byteBuffer)
ByteBuffer
byteBuffer - The wrapped byteBufferpublic int available()
available in class InputStreampublic void close()
close in interface Closeableclose in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read()
ByteBuffer.
read in class InputStreampublic int read(byte[] b)
ByteBuffer.
read in class InputStream
public int read(byte[] b,
int offset,
int length)
ByteBuffer.
read in class InputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||