|
||||||||||
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(java.nio.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(java.nio.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(java.nio.ByteBuffer byteBuffer)
Method Detail |
---|
public void setByteBuffer(java.nio.ByteBuffer byteBuffer)
ByteBuffer
byteBuffer
- The wrapped byteBufferpublic int available()
available
in class java.io.InputStream
public void close()
close
in interface java.io.Closeable
close
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
public int read()
ByteBuffer
.
read
in class java.io.InputStream
public int read(byte[] b)
ByteBuffer
.
read
in class java.io.InputStream
public int read(byte[] b, int offset, int length)
ByteBuffer
.
read
in class java.io.InputStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |