|
|||||||||
| 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.
ResponseInputStream| Constructor Summary | |
RequestOutputStream(java.io.OutputStream stream)
Construct an output stream wrapping the given stream. |
|
RequestOutputStream(java.io.OutputStream stream,
boolean useChunking)
Construct an output stream wrapping the given stream. |
|
| Method Summary | |
void |
close()
Close this output stream, causing any buffered data to be flushed and any further output data to throw an IOException. |
boolean |
isUseChunking()
Use chunking flag getter. |
void |
print(java.lang.String s)
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) to the client. |
void |
println(java.lang.String s)
Writes a String to the client,
followed by a carriage return-line feed (CRLF). |
void |
setUseChunking(boolean useChunking)
Use chunking flag setter. |
void |
write(byte[] b,
int off,
int len)
Write the specified byte array. |
void |
write(int b)
Write the specified byte to our output stream. |
| Methods inherited from class java.io.OutputStream |
flush, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RequestOutputStream(java.io.OutputStream stream)
stream - wrapped output stream. Must be non-null.
public RequestOutputStream(java.io.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(java.lang.String s)
throws java.io.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.java.io.IOException - if an input or output exception occurred
public void println()
throws java.io.IOException
java.io.IOException - if an input or output exception occurred
public void println(java.lang.String s)
throws java.io.IOException
String to the client,
followed by a carriage return-line feed (CRLF).s - the String to write to the clientjava.io.IOException - if an input or output exception occurred
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamb - The byte to be writtenjava.io.IOException - if an input/output error occurs
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamb - the byte array to write outoff - the offset within b to start writing fromlen - the length of data within b to writejava.io.IOException - when errors occur writing output
public void close()
throws java.io.IOException
close in class java.io.OutputStreamjava.io.IOException - if an error occurs closing the stream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||