    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

##

BUFSIZE
  Default size of chunk of buffers.

##

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

##

BUFSIZE

      public final static int BUFSIZE

  Default size of chunk of buffers.

##

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.

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.

close

      public synchronized void close() throws IOException

  Close this session input stream.
  Overrides:
    close in class InputStream

read

      public int read() throws IOException

  Read one byte of input.
  Overrides:
    read in class InputStream

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