org.apache.catalina.connector.http
クラス HttpRequestStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--javax.servlet.ServletInputStream
              |
              +--org.apache.catalina.connector.RequestStream
                    |
                    +--org.apache.catalina.connector.http.HttpRequestStream

public class HttpRequestStream
extends RequestStream

作成者:
Remy Maucherat

フィールドの概要
protected  boolean chunk
          Use chunking ?
protected  byte[] chunkBuffer
          Chunk buffer.
protected  int chunkLength
          Chunk length.
protected  int chunkPos
          Chunk buffer position.
protected  boolean endChunk
          True if the final chunk was found.
protected  boolean http11
          HTTP/1.1 flag.
 
クラス org.apache.catalina.connector.RequestStream から継承したフィールド
closed, count, length, sm, stream
 
コンストラクタの概要
HttpRequestStream(org.apache.catalina.connector.http.HttpRequestImpl request, org.apache.catalina.connector.http.HttpResponseImpl response)
          Construct a servlet input stream associated with the specified Request.
 
メソッドの概要
 void close()
          Close this input stream.
 int read()
          Read and return a single byte from this input stream, or -1 if end of file has been encountered.
 int read(byte[] b, int off, int len)
          Read up to len bytes of data from the input stream into an array of bytes.
 
クラス org.apache.catalina.connector.RequestStream から継承したメソッド
read
 
クラス javax.servlet.ServletInputStream から継承したメソッド
readLine
 
クラス java.io.InputStream から継承したメソッド
available, mark, markSupported, reset, skip
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

chunk

protected boolean chunk
Use chunking ?

endChunk

protected boolean endChunk
True if the final chunk was found.

chunkBuffer

protected byte[] chunkBuffer
Chunk buffer.

chunkLength

protected int chunkLength
Chunk length.

chunkPos

protected int chunkPos
Chunk buffer position.

http11

protected boolean http11
HTTP/1.1 flag.
コンストラクタの詳細

HttpRequestStream

public HttpRequestStream(org.apache.catalina.connector.http.HttpRequestImpl request,
                         org.apache.catalina.connector.http.HttpResponseImpl response)
Construct a servlet input stream associated with the specified Request.
パラメータ:
request - The associated request
response - The associated response
メソッドの詳細

close

public void close()
           throws java.io.IOException
Close this input stream. No physical level I-O is performed, but any further attempt to read from this stream will throw an IOException. If a content length has been set but not all of the bytes have yet been consumed, the remaining bytes will be swallowed.
オーバーライド:
クラス RequestStream 内の close

read

public int read()
         throws java.io.IOException
Read and return a single byte from this input stream, or -1 if end of file has been encountered.
オーバーライド:
クラス RequestStream 内の read
例外:
java.io.IOException - if an input/output error occurs

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Read up to len bytes of data from the input stream into an array of bytes. An attempt is made to read as many as len bytes, but a smaller number may be read, possibly zero. The number of bytes actually read is returned as an integer. This method blocks until input data is available, end of file is detected, or an exception is thrown.
オーバーライド:
クラス RequestStream 内の read
パラメータ:
b - The buffer into which the data is read
off - The start offset into array b at which the data is written
len - The maximum number of bytes to read
例外:
java.io.IOException - if an input/output error occurs


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.