java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.prolifics.servlet.HttpOutputStream
- class HttpOutputStream
- extends java.io.FilterOutputStream
- Version:
- @(#)HttpOutputStream.java 77.2 00/05/10 13:27:56
|
Method Summary |
private void |
addCookie(javax.servlet.http.HttpServletResponse res,
java.lang.String cookieStr)
|
private static java.lang.String |
bytesToString(byte[] src,
int offset,
int len)
|
private static int |
getclss(int chr)
|
private static int |
newstate(int state,
int clss)
|
private int |
process(byte[] buf,
int offset,
int len)
|
private void |
processhdr(javax.servlet.http.HttpServletResponse res,
java.lang.String name,
java.lang.String value)
|
void |
write(byte[] buf)
This method writes all the bytes in the specified array to the underlying
OutputStream. |
void |
write(byte[] buf,
int offset,
int len)
This method calls the write(int) method len
times for all bytes from the array buf starting at index
offset. |
void |
write(int b)
This method writes a single byte of output to the underlying
OutputStream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sccsid
private static java.lang.String sccsid
res
private javax.servlet.http.HttpServletResponse res
state
private int state
nmlen
private int nmlen
name
private byte[] name
vallen
private int vallen
val
private byte[] val
hdrdone
private boolean hdrdone
alldone
private boolean alldone
nul
private static final byte nul
- See Also:
- Constant Field Values
start
private static final int start
- See Also:
- Constant Field Values
hdrnm
private static final int hdrnm
- See Also:
- Constant Field Values
aehdr
private static final int aehdr
- See Also:
- Constant Field Values
ehdr
private static final int ehdr
- See Also:
- Constant Field Values
aend
private static final int aend
- See Also:
- Constant Field Values
end
private static final int end
- See Also:
- Constant Field Values
hdrsp
private static final int hdrsp
- See Also:
- Constant Field Values
hdrval
private static final int hdrval
- See Also:
- Constant Field Values
ehdrnm
private static final int ehdrnm
- See Also:
- Constant Field Values
err
private static final int err
- See Also:
- Constant Field Values
statenm
private static final java.lang.String[] statenm
statetable
private static final int[][] statetable
HttpOutputStream
public HttpOutputStream(javax.servlet.http.HttpServletResponse res,
javax.servlet.ServletOutputStream out)
getclss
private static int getclss(int chr)
newstate
private static int newstate(int state,
int clss)
addCookie
private void addCookie(javax.servlet.http.HttpServletResponse res,
java.lang.String cookieStr)
bytesToString
private static java.lang.String bytesToString(byte[] src,
int offset,
int len)
write
public void write(byte[] buf,
int offset,
int len)
throws java.io.IOException
- Description copied from class:
java.io.FilterOutputStream
- This method calls the
write(int) method len
times for all bytes from the array buf starting at index
offset. Subclasses should overwrite this method to get a
more efficient implementation.
write
public void write(byte[] buf)
throws java.io.IOException
- Description copied from class:
java.io.FilterOutputStream
- This method writes all the bytes in the specified array to the underlying
OutputStream. It does this by calling the three parameter
version of this method - write(byte[], int, int) in this
class instead of writing to the underlying OutputStream
directly. This allows most subclasses to avoid overriding this method.
write
public void write(int b)
throws java.io.IOException
- Description copied from class:
java.io.FilterOutputStream
- This method writes a single byte of output to the underlying
OutputStream.
processhdr
private void processhdr(javax.servlet.http.HttpServletResponse res,
java.lang.String name,
java.lang.String value)
throws java.io.IOException
process
private int process(byte[] buf,
int offset,
int len)
throws java.io.IOException