Class Request.HttpOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
sunlabs.brazil.server.Request.HttpOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
- Enclosing class:
Request
The
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.
- Version:
- 2.11
- Author:
- Stephen Uhler (stephen.uhler@sun.com), Colin Stevens (colin.stevens@sun.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Count the number of bytes that are written to this streamFields inherited from class FilterOutputStream
out
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
sendHeaders
(Request request) void
write
(byte b) void
write
(byte[] buf, int off, int len) void
writeBytes
(String s) Methods inherited from class FilterOutputStream
close, flush, write, write
Methods inherited from class OutputStream
nullOutputStream
-
Field Details
-
bytesWritten
public int bytesWrittenCount the number of bytes that are written to this stream
-
-
Constructor Details
-
HttpOutputStream
-
-
Method Details
-
writeBytes
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
sendHeaders
- Throws:
IOException
-