|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BytestreamSession
BytestreamSession provides an interface for established bytestream sessions.
There are two implementations of the interface. See Socks5BytestreamSession
and
InBandBytestreamSession
.
Method Summary | |
---|---|
void |
close()
Closes the bytestream session. |
java.io.InputStream |
getInputStream()
Returns the InputStream associated with this session to send data. |
java.io.OutputStream |
getOutputStream()
Returns the OutputStream associated with this session to receive data. |
int |
getReadTimeout()
Returns the timeout for read operations of the input stream associated with this session. |
void |
setReadTimeout(int timeout)
Sets the specified timeout, in milliseconds. |
Method Detail |
---|
java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- if an error occurs while retrieving the input streamjava.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
- if an error occurs while retrieving the output streamvoid close() throws java.io.IOException
Closing the session will also close the input stream and the output stream associated to this session.
java.io.IOException
- if an error occurs while closing the sessionint getReadTimeout() throws java.io.IOException
java.io.IOException
- if there is an error in the underlying protocolvoid setReadTimeout(int timeout) throws java.io.IOException
timeout
- the specified timeout, in milliseconds
java.io.IOException
- if there is an error in the underlying protocol
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |