org.eclipse.jetty.server
类 HttpWriter
java.lang.Object
java.io.Writer
org.eclipse.jetty.server.HttpWriter
- 所有已实现的接口:
- Closeable, Flushable, Appendable
- 直接已知子类:
- AbstractHttpConnection.OutputWriter
public class HttpWriter
- extends Writer
OutputWriter.
A writer that can wrap a 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.org
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_OUTPUT_CHARS
public static final int MAX_OUTPUT_CHARS
- 另请参见:
- 常量字段值
HttpWriter
public HttpWriter(HttpOutput out)
setCharacterEncoding
public void setCharacterEncoding(String encoding)
close
public void close()
throws IOException
- 指定者:
- 接口
Closeable 中的 close - 指定者:
- 类
Writer 中的 close
- 抛出:
IOException
flush
public void flush()
throws IOException
- 指定者:
- 接口
Flushable 中的 flush - 指定者:
- 类
Writer 中的 flush
- 抛出:
IOException
write
public void write(String s,
int offset,
int length)
throws IOException
- 覆盖:
- 类
Writer 中的 write
- 抛出:
IOException
write
public void write(char[] s,
int offset,
int length)
throws IOException
- 指定者:
- 类
Writer 中的 write
- 抛出:
IOException
Copyright © 2013. All Rights Reserved.