public class HttpWriter
extends java.io.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) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
setCharacterEncoding(java.lang.String encoding) |
void |
write(char[] s,
int offset,
int length) |
void |
write(java.lang.String s,
int offset,
int length) |
public static final int MAX_OUTPUT_CHARS
public HttpWriter(HttpOutput out)
public void setCharacterEncoding(java.lang.String encoding)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.Writerjava.io.IOExceptionpublic void write(java.lang.String s,
int offset,
int length)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void write(char[] s,
int offset,
int length)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionCopyright © 2013 FuseSource, Corp.. All Rights Reserved.