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


字段摘要
static int MAX_OUTPUT_CHARS
           
 
从类 java.io.Writer 继承的字段
lock
 
构造方法摘要
HttpWriter(HttpOutput out)
           
 
方法摘要
 void close()
           
 void flush()
           
 void setCharacterEncoding(String encoding)
           
 void write(char[] s, int offset, int length)
           
 void write(String s, int offset, int length)
           
 
从类 java.io.Writer 继承的方法
append, append, append, write, write, write
 
从类 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.