org.eclipse.jetty.server
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.orgModifier 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.Closeable
close
in class java.io.Writer
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
public void write(java.lang.String s, int offset, int length) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(char[] s, int offset, int length) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
Copyright © 2016. All Rights Reserved.