WebBody.BytesBody, WebBody.PathBody| Modifier and Type | Field and Description |
|---|---|
java.nio.file.Path |
path |
| Constructor and Description |
|---|
PathBody(java.nio.file.Path path,
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()
throws java.io.IOException
WebBodypublic boolean multiOpenAllowed()
WebBodyWebBody.open() being
called multiple times.multiOpenAllowed in interface WebBodypublic long length()
WebBodypublic java.lang.String contentType()
WebBodycontentType in interface WebBody