org.openmobileis.embedded.webserver
Class ServeInputStream

java.lang.Object
  extended byServletInputStream
      extended byorg.openmobileis.embedded.webserver.ServeInputStream

public class ServeInputStream
extends ServletInputStream

See Also:
Serialized Form

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 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
Throws:
java.io.IOException

read

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

read

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

skip

public long skip(long len)
          throws java.io.IOException
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

Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
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 2006 OpenMobileIS. All Rights Reserved.