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

Method Index

 o accept(int)
Mark this session as accepted.
 o close()
Close this session.
 o closeInputStream()
Close this session input stream.
 o closeOutputStream()
Close this session output stream.
 o getIdentifier()
Get this session identifier.
 o getInputStream()
Get this session input stream.
 o getOutputStream()
Get this session output stream.
 o getProtocolIdentifier()
Get this session protocol identifier.
 o getReader()
Get the reader for this session.
 o getWriter()
Get the writer for this session.
 o isPending()
Is this session waiting for someone to accept it.

Methods

 o isPending
  protected synchronized boolean isPending()
Is this session waiting for someone to accept it.
 o accept
  protected synchronized Session accept(int protid)
Mark this session as accepted.
 o closeInputStream
  protected synchronized void closeInputStream() throws IOException
Close this session input stream.
 o closeOutputStream
  protected synchronized void closeOutputStream() throws IOException
Close this session output stream.
 o getWriter
  protected MPWriter getWriter()
Get the writer for this session.
 o getReader
  protected MPReader getReader()
Get the reader for this session.
 o getProtocolIdentifier
  public int getProtocolIdentifier()
Get this session protocol identifier.
Returns:
The protocol identifier, or -1 if no protocol identifier was defined for this session.
 o getIdentifier
  public int getIdentifier()
Get this session identifier.
 o 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.
 o getInputStream
  public synchronized SessionInputStream getInputStream() throws IOException
Get this session input stream.
Returns:
An instance of InputStream.
Throws: IOException
In case of IO errors.
 o 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