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 int
MAX_OUTPUT_CHARS
-
Constructor Summary
Constructors Constructor Description HttpWriter(HttpOutput out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
complete(Callback callback)
void
flush()
void
write(char[] s, int offset, int length)
void
write(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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classjava.io.Writer
- Throws:
java.io.IOException
-
complete
public void complete(Callback callback)
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfacejava.io.Flushable
- Specified by:
flush
in classjava.io.Writer
- Throws:
java.io.IOException
-
write
public void write(java.lang.String s, int offset, int length) throws java.io.IOException
- Overrides:
write
in classjava.io.Writer
- Throws:
java.io.IOException
-
write
public void write(char[] s, int offset, int length) throws java.io.IOException
- Specified by:
write
in classjava.io.Writer
- Throws:
java.io.IOException
-
-