Acme.Serve
Class Serve.ServeInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by javax.servlet.ServletInputStream
          extended by Acme.Serve.Serve.ServeInputStream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
Serve

public static class Serve.ServeInputStream
extends javax.servlet.ServletInputStream


Constructor Summary
Serve.ServeInputStream(java.io.InputStream in, Serve.ServeConnection conn)
          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)
           
protected  java.lang.String readLine(int maxLen)
          Read a line ended by CRLF, used internally only for reading headers.
 void reset()
           
 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

Serve.ServeInputStream

public Serve.ServeInputStream(java.io.InputStream in,
                              Serve.ServeConnection conn)
Constructor

Method Detail

chunking

public void chunking(boolean chunking)
Parameters:
chunking -

readLine

protected java.lang.String readLine(int maxLen)
                             throws java.io.IOException
Read a line ended by CRLF, used internally only for reading headers. No char encoding, ASCII only

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()
           throws java.io.IOException
Overrides:
reset in class java.io.InputStream
Throws:
java.io.IOException

mark

public void mark(int readlimit)
Not Implemented

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


Copyright © 2010. All Rights Reserved.