Package org.eclipse.jetty.server
Class Utf8HttpWriter
- java.lang.Object
-
- java.io.Writer
-
- org.eclipse.jetty.server.HttpWriter
-
- org.eclipse.jetty.server.Utf8HttpWriter
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.Appendable
,java.lang.AutoCloseable
public class Utf8HttpWriter extends HttpWriter
OutputWriter. A writer that can wrap aHttpOutput
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
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.server.HttpWriter
MAX_OUTPUT_CHARS
-
-
Constructor Summary
Constructors Constructor Description Utf8HttpWriter(HttpOutput out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(char[] s, int offset, int length)
-
Methods inherited from class org.eclipse.jetty.server.HttpWriter
close, complete, flush, write
-
-
-
-
Constructor Detail
-
Utf8HttpWriter
public Utf8HttpWriter(HttpOutput out)
-
-
Method Detail
-
write
public void write(char[] s, int offset, int length) throws java.io.IOException
- Overrides:
write
in classHttpWriter
- Throws:
java.io.IOException
-
-