public abstract class ByteStreamSession
extends java.lang.Object
implements java.lang.AutoCloseable
An abstract byte stream session, which either represents a XEP-0047: In-Band Bytestreams or XEP-0065: SOCKS5 Bytestreams session.
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(java.lang.String sessionId) |
Modifier and Type | Method and Description |
---|---|
abstract java.io.InputStream |
getInputStream()
Gets the input stream.
|
abstract java.io.OutputStream |
getOutputStream()
Gets the output stream.
|
java.lang.String |
getSessionId()
Gets the session id for this byte stream session.
|
public abstract java.io.OutputStream getOutputStream() throws java.io.IOException
Gets the output stream.
java.io.IOException
- If an I/O error occurs when creating the output stream or the session is closed.public abstract java.io.InputStream getInputStream() throws java.io.IOException
Gets the input stream.
java.io.IOException
- If an I/O error occurs when creating the input stream or the session is closed.public final java.lang.String getSessionId()
Gets the session id for this byte stream session.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.