WebBody.BytesBody, WebBody.PathBody| Constructor and Description |
|---|
BytesBody(byte[] bytes,
java.lang.String contentType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
contentType()
The mime content type for this data.
|
long |
length()
The length of the data.
|
boolean |
multiOpenAllowed()
Checks if this WebBody supports
WebBody.open() being
called multiple times. |
java.io.InputStream |
open()
Open a stream to read the body data.
|
public java.io.InputStream open()
WebBodypublic boolean multiOpenAllowed()
WebBodyWebBody.open() being
called multiple times.multiOpenAllowed in interface WebBodypublic long length()
WebBodypublic java.lang.String contentType()
WebBodycontentType in interface WebBody