|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--java.io.InputStream | +--org.apache.catalina.connector.http.SocketInputStream
Extends InputStream to be more efficient reading lines during HTTP header processing.
フィールドの概要 | |
protected byte[] |
buf
Internal buffer. |
protected int |
count
Last valid byte. |
protected java.io.InputStream |
is
Underlying input stream. |
protected int |
pos
Position in the buffer. |
protected static StringManager |
sm
The string manager for this package. |
コンストラクタの概要 | |
SocketInputStream(java.io.InputStream is,
int bufferSize)
Construct a servlet input stream associated with the specified socket input. |
メソッドの概要 | |
int |
available()
Returns the number of bytes that can be read from this input stream without blocking. |
void |
close()
Close the input stream. |
protected void |
fill()
Fill the internal buffer using data from the undelying input stream. |
int |
read()
Read byte. |
void |
readHeader(org.apache.catalina.connector.http.HttpHeader header)
Read a header, and copies it to the given buffer. |
void |
readRequestLine(org.apache.catalina.connector.http.HttpRequestLine requestLine)
Read the request line, and copies it to the given buffer. |
クラス java.io.InputStream から継承したメソッド |
mark, markSupported, read, read, reset, skip |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected byte[] buf
protected int count
protected int pos
protected java.io.InputStream is
protected static StringManager sm
コンストラクタの詳細 |
public SocketInputStream(java.io.InputStream is, int bufferSize)
is
- socket input streambufferSize
- size of the internal bufferメソッドの詳細 |
public void readRequestLine(org.apache.catalina.connector.http.HttpRequestLine requestLine) throws java.io.IOException
requestLine
- Request line objectjava.io.IOException
- If an exception occurs during the underlying socket
read operations, or if the given buffer is not big enough to accomodate
the whole line.public void readHeader(org.apache.catalina.connector.http.HttpHeader header) throws java.io.IOException
requestLine
- Request line objectjava.io.IOException
- If an exception occurs during the underlying socket
read operations, or if the given buffer is not big enough to accomodate
the whole line.public int read() throws java.io.IOException
java.io.InputStream
内の read
public int available() throws java.io.IOException
java.io.InputStream
内の available
public void close() throws java.io.IOException
java.io.InputStream
内の close
protected void fill() throws java.io.IOException
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |