org.eclipse.jetty.server
类 HttpOutput

java.lang.Object
  继承者 java.io.OutputStream
      继承者 javax.servlet.ServletOutputStream
          继承者 org.eclipse.jetty.server.HttpOutput
所有已实现的接口:
Closeable, Flushable
直接已知子类:
AbstractHttpConnection.Output

public class HttpOutput
extends ServletOutputStream

Output.

Implements ServletOutputStream from the javax.servlet package.

A ServletOutputStream implementation that writes content to a AbstractGenerator. The class is designed to be reused and can be reopened after a close.


字段摘要
protected  AbstractHttpConnection _connection
           
protected  AbstractGenerator _generator
           
 
构造方法摘要
HttpOutput(AbstractHttpConnection connection)
           
 
方法摘要
 void close()
           
 void flush()
           
 int getMaxIdleTime()
           
 boolean isClosed()
           
 boolean isWritten()
           
 void print(String s)
          Writes a String to the client, without a carriage return-line feed (CRLF) character at the end.
 void reopen()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
从类 javax.servlet.ServletOutputStream 继承的方法
print, print, print, print, print, print, println, println, println, println, println, println, println, println
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

_connection

protected final AbstractHttpConnection _connection

_generator

protected final AbstractGenerator _generator
构造方法详细信息

HttpOutput

public HttpOutput(AbstractHttpConnection connection)
方法详细信息

getMaxIdleTime

public int getMaxIdleTime()

isWritten

public boolean isWritten()

close

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

isClosed

public boolean isClosed()

reopen

public void reopen()

flush

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

write

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

write

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

write

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

print

public void print(String s)
           throws IOException
从类 ServletOutputStream 复制的描述
Writes a String to the client, without a carriage return-line feed (CRLF) character at the end.

覆盖:
ServletOutputStream 中的 print
参数:
s - the String to send to the client
抛出:
IOException - if an input or output exception occurred


Copyright © 2013. All Rights Reserved.