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.
| 从类 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.