public class WriterOutputStream extends OutputStream
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.
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE
TODO: we should be used pooled buffers
|
| Constructor and Description |
|---|
WriterOutputStream(HttpServerExchange exchange,
PrintWriter writer,
String charset) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
close, flushpublic static final int BUFFER_SIZE
public WriterOutputStream(HttpServerExchange exchange, PrintWriter writer, String charset)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.