|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.io.OutputStream
|
+--org.apache.commons.httpclient.RequestOutputStream
OutputStream wrapper supporting the chunked transfer encoding.
| Constructor Summary | |
RequestOutputStream(OutputStream stream)
Deprecated. Use ChunkedOutputStream; |
|
RequestOutputStream(OutputStream stream,
boolean useChunking)
Deprecated. Use ChunkedOutputStream; |
|
| Method Summary | |
void |
close()
Deprecated. Use ChunkedOutputStream; |
boolean |
isUseChunking()
Deprecated. Use ChunkedOutputStream; |
void |
print(String s)
Deprecated. Use ChunkedOutputStream; |
void |
println()
Deprecated. Use ChunkedOutputStream; |
void |
println(String s)
Deprecated. Use ChunkedOutputStream; |
void |
setUseChunking(boolean useChunking)
Deprecated. Use ChunkedOutputStream; |
void |
write(byte[] b,
int off,
int len)
Deprecated. Use ChunkedOutputStream; |
void |
write(int b)
Deprecated. Use ChunkedOutputStream; |
| Methods inherited from class java.io.OutputStream |
flush, write |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public RequestOutputStream(OutputStream stream)
stream - wrapped output stream. Must be non-null.
public RequestOutputStream(OutputStream stream,
boolean useChunking)
stream - wrapped output stream. Must be non-null.useChunking - when true, the chunked transfer encoding
will be used| Method Detail |
public void setUseChunking(boolean useChunking)
useChunking - true if chunking is to be used, false otherwisepublic boolean isUseChunking()
public void print(String s)
throws IOException
String to the client, without a carriage return
line feed (CRLF) character at the end.s - the String to send to the client. Must be non-null.IOException - if an input or output exception occurred
public void println()
throws IOException
IOException - if an input or output exception occurred
public void println(String s)
throws IOException
String to the client,
followed by a carriage return-line feed (CRLF).s - the String to write to the clientIOException - if an input or output exception occurred
public void write(int b)
throws IOException
write in class OutputStreamb - The byte to be writtenIOException - if an input/output error occurs
public void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamb - the byte array to write outoff - the offset within b to start writing fromlen - the length of data within b to writeIOException - when errors occur writing output
public void close()
throws IOException
close in class OutputStreamIOException - if an error occurs closing the stream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||