Class w3c.mux.SessionInputStream
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.mux.SessionInputStream

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----w3c.mux.SessionInputStream

public class SessionInputStream
extends InputStream

Variable Index

 o BUFSIZE
Default size of chunk of buffers.

Method Index

 o addInput(byte[], int, int)
Add the given data to our input queue.
 o checkInput(byte[], int, int)
Check this session for already available input.
 o close()
Close this session input stream.
 o read()
Read one byte of input.
 o read(byte[], int, int)
Read some bytes on this session input stream.

Variables

 o BUFSIZE
  public final static int BUFSIZE
Default size of chunk of buffers.

Methods

 o checkInput
  protected synchronized int checkInput(byte buf[],
                                        int off,
                                        int len) throws IOException
Check this session for already available input. If input is available, dump it into the provided buffer and return the number of bytes copied.
 o addInput
  protected synchronized void addInput(byte buf[],
                                       int off,
                                       int len) throws IOException
Add the given data to our input queue. The data gets copied to our own buffer.
 o close
  public synchronized void close() throws IOException
Close this session input stream.
Overrides:
close in class InputStream
 o read
  public int read() throws IOException
Read one byte of input.
Overrides:
read in class InputStream
 o read
  public synchronized int read(byte buf[],
                               int offset,
                               int len) throws IOException
Read some bytes on this session input stream.
Overrides:
read in class InputStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index