Class w3c.mux.Session
All Packages Class Hierarchy This Package Previous Next Index
Class w3c.mux.Session
java.lang.Object
|
+----w3c.mux.Session
- public class Session
- extends Object
-
accept(int)
- Mark this session as accepted.
-
close()
- Close this session.
-
closeInputStream()
- Close this session input stream.
-
closeOutputStream()
- Close this session output stream.
-
getIdentifier()
- Get this session identifier.
-
getInputStream()
- Get this session input stream.
-
getOutputStream()
- Get this session output stream.
-
getProtocolIdentifier()
- Get this session protocol identifier.
-
getReader()
- Get the reader for this session.
-
getWriter()
- Get the writer for this session.
-
isPending()
- Is this session waiting for someone to accept it.
isPending
protected synchronized boolean isPending()
- Is this session waiting for someone to accept it.
accept
protected synchronized Session accept(int protid)
- Mark this session as accepted.
closeInputStream
protected synchronized void closeInputStream() throws IOException
- Close this session input stream.
closeOutputStream
protected synchronized void closeOutputStream() throws IOException
- Close this session output stream.
getWriter
protected MPWriter getWriter()
- Get the writer for this session.
getReader
protected MPReader getReader()
- Get the reader for this session.
getProtocolIdentifier
public int getProtocolIdentifier()
- Get this session protocol identifier.
- Returns:
- The protocol identifier, or -1 if no protocol
identifier was defined for this session.
getIdentifier
public int getIdentifier()
- Get this session identifier.
close
public void close() throws IOException
- Close this session.
Closes both the input and the output stream, and unregister the
session from the multiplexed stream. Once this method is done, the
session identifier is free for reuse.
getInputStream
public synchronized SessionInputStream getInputStream() throws IOException
- Get this session input stream.
- Returns:
- An instance of InputStream.
- Throws: IOException
- In case of IO errors.
getOutputStream
public synchronized SessionOutputStream getOutputStream() throws IOException
- Get this session output stream.
- Returns:
- an instance of OutputStream.
- Throws: IOException
- In case of IO errors.
All Packages Class Hierarchy This Package Previous Next Index