Modifier and Type | Method and Description |
---|---|
String |
asString() |
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 in UTF8.
|
void |
printHead(Writer writer)
Print it into a writer.
|
public RsPrint(Response res)
res
- Original responsepublic String print() throws IOException
IOException
- If failspublic String asString() throws IOException
asString
in interface org.cactoos.Text
IOException
public 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 printHead(Writer writer) throws IOException
writer
- Writer to print intoIOException
- If failspublic void printBody(OutputStream output) throws IOException
output
- Output to print intoIOException
- If failsCopyright © 2015–2019 Take. All rights reserved.