Package org.eclipse.jetty.server
Class HttpWriter
- java.lang.Object
-
- java.io.Writer
-
- org.eclipse.jetty.server.HttpWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
- Direct Known Subclasses:
EncodingHttpWriter,Iso88591HttpWriter,Utf8HttpWriter
public abstract class HttpWriter extends java.io.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()voidcomplete(Callback callback)voidflush()voidwrite(char[] s, int offset, int length)voidwrite(java.lang.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 java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classjava.io.Writer- Throws:
java.io.IOException
-
complete
public void complete(Callback callback)
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Specified by:
flushin classjava.io.Writer- Throws:
java.io.IOException
-
write
public void write(java.lang.String s, int offset, int length) throws java.io.IOException- Overrides:
writein classjava.io.Writer- Throws:
java.io.IOException
-
write
public void write(char[] s, int offset, int length) throws java.io.IOException- Specified by:
writein classjava.io.Writer- Throws:
java.io.IOException
-
-