org.openmobileis.embedded.webserver
Class ServeInputStream

org.openmobileis.embedded.webserver.ServeInputStream

public class ServeInputStream


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)
           
 

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.

read

public int read()
         throws java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException

skip

public long skip(long len)
          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

close

public void close()
           throws java.io.IOException

markSupported

public boolean markSupported()
Mark is not supported
Returns:
false

reset

public void reset()
Not Implemented

mark

public void mark(int readlimit)
Not Implemented
Parameters:
readlimit -  


Copyright 2005 e-Care. All Rights Reserved.