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.
|
String |
getSessionId()
Gets the session id for this byte stream session.
|
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()
Copyright © 2014–2017 XMPP.rocks. All rights reserved.