com.judoscript.user.httpserver
Class ServeInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by javax.servlet.ServletInputStream
          extended by com.judoscript.user.httpserver.ServeInputStream
All Implemented Interfaces:
java.io.Closeable

public class ServeInputStream
extends javax.servlet.ServletInputStream


Constructor Summary
ServeInputStream(java.io.InputStream in)
          Constructor
 
Method Summary
 int available()
          Available bytes to read without blocking.
 void chunking(boolean chunking)
           
 void close()
           
 void mark(int readlimit)
          Not Implemented
 boolean markSupported()
          Mark is not supported
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 java.lang.String readLine()
          Read a line ended by CR or CRLF or LF.
 void reset()
          Not Implemented
 long skip(long len)
           
 
Methods inherited from class javax.servlet.ServletInputStream
readLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServeInputStream

public ServeInputStream(java.io.InputStream in)
Constructor

Method Detail

chunking

public void chunking(boolean chunking)
Parameters:
chunking -

readLine

public java.lang.String readLine()
                          throws java.io.IOException
Read a line ended by CR or CRLF or LF. More forgiving of line termination than ServletInputStream.readLine(). This method only read raw data, that may be chunked. Calling ServletInputStream.readLine() will always return unchunked data.

Throws:
java.io.IOException

read

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

read

public int read(byte[] b)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

skip

public long skip(long len)
          throws java.io.IOException
Overrides:
skip in class java.io.InputStream
Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
Available bytes to read without blocking. If you are unlucky may return 0 when there are more

Overrides:
available in class java.io.InputStream
Throws:
java.io.IOException

close

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

markSupported

public boolean markSupported()
Mark is not supported

Overrides:
markSupported in class java.io.InputStream
Returns:
false

reset

public void reset()
Not Implemented

Overrides:
reset in class java.io.InputStream

mark

public void mark(int readlimit)
Not Implemented

Overrides:
mark in class java.io.InputStream
Parameters:
readlimit -