|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.OutputStream | +--javax.servlet.ServletOutputStream | +--com.mortbay.HTTP.HttpOutputStream
HTTP output stream
Implements ServletOutputStream
The path that a single call to write on HttpOutputStream can be delegated to the following output streams:
---> HttpOutputSteam.out --> Filter out 1 --> ... -> Filter out N | HttpOutputStream$SwitchedOutStream switchOut <----+ / \ / \ V V socket <--- HttpOutputStream.realOut <-- ByteArrayOutputStream chunk
Constructor Summary | |
HttpOutputStream(java.io.OutputStream out,
HttpResponse response)
|
Method Summary | |
void |
close()
|
void |
flush()
|
java.io.OutputStream |
getOutputStream()
|
void |
print(int i)
Writes an integer to the client, with no carriage return-line feed (CRLF) character at the end. |
void |
print(long i)
Writes a long value to the client,
with no carriage return-line feed (CRLF) character
at the end. |
void |
print(java.lang.String string)
Writes a String to the client,
without a carriage return-line feed (CRLF)
character at the end. |
void |
println()
Writes a carriage return-line feed (CRLF) character to the client. |
void |
println(int i)
Writes an integer to the client, followed by a carriage return-line feed (CRLF) character. |
void |
println(long i)
Writes a long value to the client, followed by a
carriage return-line feed (CRLF) character. |
void |
println(java.lang.String string)
Writes a String to the client,
followed by a carriage return-line feed (CRLF)
character. |
java.io.OutputStream |
replaceOutputStream(java.io.OutputStream newOut)
|
void |
setChunking(boolean on)
Switch chunking on an off |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class javax.servlet.ServletOutputStream |
print,
print,
print,
print,
println,
println,
println,
println |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public HttpOutputStream(java.io.OutputStream out, HttpResponse response)
Method Detail |
public java.io.OutputStream getOutputStream()
public java.io.OutputStream replaceOutputStream(java.io.OutputStream newOut)
public void setChunking(boolean on) throws java.io.IOException
on
- public void write(int b) throws java.io.IOException
public void write(byte[] b) throws java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
public void flush() throws java.io.IOException
public void close() throws java.io.IOException
public void print(java.lang.String string) throws java.io.IOException
String
to the client,
without a carriage return-line feed (CRLF)
character at the end.s
- the String
Throws:public void print(int i) throws java.io.IOException
i
- the integer to send to the clientpublic void print(long i) throws java.io.IOException
long
value to the client,
with no carriage return-line feed (CRLF) character
at the end.l
- the long
value
to send to the clientpublic void println(java.lang.String string) throws java.io.IOException
String
to the client,
followed by a carriage return-line feed (CRLF)
character.s
- the String to write to the clientpublic void println(int i) throws java.io.IOException
i
- the integer to write to the clientpublic void println(long i) throws java.io.IOException
long
value to the client, followed by a
carriage return-line feed (CRLF) character.l
- the long
value to write to the clientpublic void println() throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |