public static interface Parser.BodyReference
| Modifier and Type | Method and Description |
|---|---|
byte[] |
bytes()
Returns the HTTP body as a byte array.
|
long |
length() |
String |
text()
Returns the HTTP body as text.
|
void |
writeTo(OutputStream output)
Write the content to the given output stream.
|
byte[] bytes()
throws IOException
IOException - If reading fails.String text() throws IOException
IOException - If reading fails.long length()
void writeTo(OutputStream output) throws Exception
OutputStream.output - An output stream.Exception - If write fails.Copyright © 2017. All rights reserved.