NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sip.parser
Class Pipeline

java.lang.Object
  extended by java.io.InputStream
      extended by gov.nist.javax.sip.parser.Pipeline
All Implemented Interfaces:
Closeable

public class Pipeline
extends InputStream

Input class for the pipelined parser. Buffer all bytes read from the socket and make them available to the message parser.

Author:
M. Ranganathan (Contains a bug fix contributed by Rob Daugherty ( Lucent Technologies) )

Constructor Summary
Pipeline(InputStream pipe, int readTimeout, Timer timer)
           
 
Method Summary
 void close()
           
 int read()
           
 void startTimer()
           
 void stopTimer()
           
 void write(byte[] bytes)
           
 void write(byte[] bytes, int start, int length)
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pipeline

public Pipeline(InputStream pipe,
                int readTimeout,
                Timer timer)
Method Detail

startTimer

public void startTimer()

stopTimer

public void stopTimer()

write

public void write(byte[] bytes,
                  int start,
                  int length)
           throws IOException
Throws:
IOException

write

public void write(byte[] bytes)
           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.