|
||||||||||
| 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.FramedMessageInputStream
public final class FramedMessageInputStream
Stream wrapper around a ByteBuffer
| Constructor Summary | |
|---|---|
FramedMessageInputStream()
|
|
FramedMessageInputStream(int frameSize)
|
|
| Method Summary | |
|---|---|
void |
activate()
|
int |
available()
Return the available bytes |
void |
close()
Close this stream. |
void |
forceHeaderRead()
|
int |
getChannelId()
|
int |
getContentId()
|
Map<Integer,String> |
getContentProperties()
|
int |
getMessageId()
|
boolean |
isDirectMode()
|
boolean |
isMessageInProcess()
|
boolean |
markSupported()
Return true if mark is supported. |
void |
passivate()
|
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 |
reset()
|
void |
setByteBuffer(ByteBuffer byteBuffer)
|
void |
setDirectMode(boolean isDirectMode)
|
void |
setFrameSize(int frameSize)
|
void |
setSocketChannel(SocketChannel socketChannel)
|
void |
skipToEndOfMessage()
|
String |
toString()
|
| Methods inherited from class java.io.InputStream |
|---|
mark, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FramedMessageInputStream()
public FramedMessageInputStream(int frameSize)
| Method Detail |
|---|
public void setSocketChannel(SocketChannel socketChannel)
public int getChannelId()
public int getMessageId()
public int getContentId()
public Map<Integer,String> getContentProperties()
public boolean isDirectMode()
public void setDirectMode(boolean isDirectMode)
public void setFrameSize(int frameSize)
public void setByteBuffer(ByteBuffer byteBuffer)
public 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
public void forceHeaderRead()
throws IOException
IOException
public void skipToEndOfMessage()
throws EOFException
EOFExceptionpublic boolean isMessageInProcess()
public void reset()
reset in class InputStreampublic void activate()
activate in interface LifeCyclepublic void passivate()
passivate in interface LifeCyclepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||