org.eclipse.jetty.io
类 WriterOutputStream

java.lang.Object
  继承者 java.io.OutputStream
      继承者 org.eclipse.jetty.io.WriterOutputStream
所有已实现的接口:
Closeable, Flushable

public class WriterOutputStream
extends OutputStream

Wrap a Writer as an OutputStream. When all you have is a Writer and only an OutputStream will do. Try not to use this as it indicates that your design is a dogs breakfast (JSP made me write it).


字段摘要
protected  String _encoding
           
protected  Writer _writer
           
 
构造方法摘要
WriterOutputStream(Writer writer)
           
WriterOutputStream(Writer writer, String encoding)
           
 
方法摘要
 void close()
           
 void flush()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

_writer

protected final Writer _writer

_encoding

protected final String _encoding
构造方法详细信息

WriterOutputStream

public WriterOutputStream(Writer writer,
                          String encoding)

WriterOutputStream

public WriterOutputStream(Writer writer)
方法详细信息

close

public void close()
           throws IOException
指定者:
接口 Closeable 中的 close
覆盖:
OutputStream 中的 close
抛出:
IOException

flush

public void flush()
           throws IOException
指定者:
接口 Flushable 中的 flush
覆盖:
OutputStream 中的 flush
抛出:
IOException

write

public void write(byte[] b)
           throws IOException
覆盖:
OutputStream 中的 write
抛出:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
覆盖:
OutputStream 中的 write
抛出:
IOException

write

public void write(int b)
           throws IOException
指定者:
OutputStream 中的 write
抛出:
IOException


Copyright © 2013. All Rights Reserved.