public static class Request.HttpOutputStream
extends java.io.FilterOutputStream
HttpOutputStream provides the convenience method
writeBytes for writing the byte representation of a
string, without bringing in the overhead and the deprecated warnings
associated with a java.io.DataOutputStream.
The other methods in this class are here to allow the
FilterHandler and ChainSawHandler to
alter the behavior in an implementation specific way. This behavior
is unfortunate, and might go away when a better strategy comes along.
| Modifier and Type | Field and Description |
|---|---|
int |
bytesWritten
Count the number of bytes that are written to this stream
|
| Constructor and Description |
|---|
HttpOutputStream(java.io.OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
sendHeaders(Request request) |
void |
write(byte b) |
void |
write(byte[] buf,
int off,
int len) |
void |
writeBytes(java.lang.String s) |
public int bytesWritten
public void writeBytes(java.lang.String s)
throws java.io.IOException
java.io.IOExceptionpublic void write(byte b)
throws java.io.IOException
java.io.IOExceptionpublic void write(byte[] buf,
int off,
int len)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void sendHeaders(Request request) throws java.io.IOException
java.io.IOException