public abstract class ByteStreamSession extends Object implements AutoCloseable
Both kind of sessions have a session id and are bidirectional, that's why this class has an input and output stream.
| Constructor and Description |
|---|
ByteStreamSession(String sessionId) |
| Modifier and Type | Method and Description |
|---|---|
abstract InputStream |
getInputStream()
Gets the input stream.
|
abstract OutputStream |
getOutputStream()
Gets the output stream.
|
abstract int |
getReadTimeout()
Gets the timeout (in milliseconds) for read operations on the input stream.
|
String |
getSessionId()
Gets the session id for this byte stream session.
|
abstract void |
setReadTimeout(int readTimeout)
Sets the timeout (in milliseconds).
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic ByteStreamSession(String sessionId)
public abstract OutputStream getOutputStream() throws IOException
IOException - If an I/O error occurs when creating the output stream or the session is closed.public abstract InputStream getInputStream() throws IOException
IOException - If an I/O error occurs when creating the input stream or the session is closed.public final String getSessionId()
public abstract int getReadTimeout()
throws IOException
IOException - If an I/O error occurred.setReadTimeout(int)public abstract void setReadTimeout(int readTimeout)
throws IOException
readTimeout - The read timeout.IOException - If an I/O error occurred.getReadTimeout()Copyright © 2014–2015 XMPP.rocks. All rights reserved.