Package org.eclipse.jetty.server
Class HttpWriter
- java.lang.Object
-
- java.io.Writer
-
- org.eclipse.jetty.server.HttpWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
- Direct Known Subclasses:
EncodingHttpWriter,Iso88591HttpWriter,Utf8HttpWriter
public abstract class HttpWriter extends Writer
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_OUTPUT_CHARS
-
Constructor Summary
Constructors Constructor Description HttpWriter(HttpOutput out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(char[] s, int offset, int length)voidwrite(String s, int offset, int length)
-
-
-
Field Detail
-
MAX_OUTPUT_CHARS
public static final int MAX_OUTPUT_CHARS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpWriter
public HttpWriter(HttpOutput out)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
write
public void write(String s, int offset, int length) throws IOException
- Overrides:
writein classWriter- Throws:
IOException
-
write
public void write(char[] s, int offset, int length) throws IOException- Specified by:
writein classWriter- Throws:
IOException
-
-