public final class RsPrint extends RsWrap
The class is immutable and thread-safe.
Modifier and Type | Method and Description |
---|---|
String |
print()
Print it into string.
|
void |
print(OutputStream output)
Print it into output stream.
|
String |
printBody()
Print body into string.
|
void |
printBody(OutputStream output)
Print it into output stream.
|
String |
printHead()
Print head into string.
|
void |
printHead(OutputStream output)
Print it into output stream.
|
public RsPrint(Response res)
res
- Original responsepublic String print() throws IOException
IOException
- If failspublic String printBody() throws IOException
IOException
- If failspublic String printHead() throws IOException
IOException
- If failspublic void print(OutputStream output) throws IOException
output
- Output to print intoIOException
- If failspublic void printHead(OutputStream output) throws IOException
output
- Output to print intoIOException
- If failspublic void printBody(OutputStream output) throws IOException
output
- Output to print intoIOException
- If failsCopyright © 2015 Take. All rights reserved.