|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IChannel is an abstraction of a bidirectional communications channel.
Method Summary | |
void |
close()
Close the channel. |
long |
getBytesRead()
Return the number of bytes read by this channel |
long |
getBytesWritten()
Return the number of bytes written by this channel |
java.io.InputStream |
getInputStream()
Return the input stream. |
XURL |
getLocalXURL()
Return the URL of the local endpoint. |
java.io.OutputStream |
getOutputStream()
Return the output stream. |
XURL |
getRemoteXURL()
Return the URL of the remote endpoint. |
int |
getState()
Return state of the channel. |
void |
setState(int state)
Change the state of the channel. |
Method Detail |
public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- If the input stream cannot be obtained.public java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
- If the output stream cannot be obtained.public void close() throws java.io.IOException
java.io.IOException
public XURL getLocalXURL()
public XURL getRemoteXURL()
public long getBytesRead()
public long getBytesWritten()
public int getState()
public void setState(int state)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |