Package io.undertow.servlet.core
Class WriterOutputStream
java.lang.Object
java.io.OutputStream
io.undertow.servlet.core.WriterOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
A sender that uses a print writer.
In general this should never be used. It exists for the edge case where a filter has called getWriter() and then the default servlet is being used to serve a text file.
- Author:
- Stuart Douglas
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intTODO: we should be used pooled buffers -
Constructor Summary
ConstructorsConstructorDescriptionWriterOutputStream(HttpServerExchange exchange, PrintWriter writer, String charset) -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
Field Details
-
BUFFER_SIZE
public static final int BUFFER_SIZETODO: we should be used pooled buffers- See Also:
-
-
Constructor Details
-
WriterOutputStream
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-