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.orgModifier 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 Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public void write(String s, int offset, int length) throws IOException
write
in class Writer
IOException
public void write(char[] s, int offset, int length) throws IOException
write
in class Writer
IOException
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.