public class HttpWriter extends Writer
HttpOutput stream and provide
character encodings.
The UTF-8 encoding is done by this class and no additional
buffers or Writers are used.
The UTF-8 code was inspired by http://javolution.org| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_OUTPUT_CHARS |
| Constructor and Description |
|---|
HttpWriter(HttpOutput out) |
public static final int MAX_OUTPUT_CHARS
public HttpWriter(HttpOutput out)
public void setCharacterEncoding(String encoding)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void write(String s, int offset, int length) throws IOException
write in class WriterIOExceptionpublic void write(char[] s,
int offset,
int length)
throws IOException
write in class WriterIOExceptionCopyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.