content
private final byte[] content
Body
, Disposable
BasicBodyFactory
copy()
SingleBody
(optional operation).void
dispose()
InputStream
which reads the bytes of the body.Reader
which may be used to read out the contents
of this body.long
size()
void
writeTo(OutputStream out)
getParent, setParent
TextBody
getMimeCharset
in class TextBody
getCharset
in class TextBody
TextBody
Reader
which may be used to read out the contents
of this body.getReader
in class TextBody
Reader
.IOException
- on I/O errors.SingleBody
InputStream
which reads the bytes of the body.getInputStream
in class SingleBody
IOException
- on I/O errors.SingleBody
SingleBody.getInputStream()
to the specified output
stream. May be overwritten by a subclass to improve performance.writeTo
in class SingleBody
out
- the stream to write to.IOException
- in case of an I/O errorsize
in class SingleBody
SingleBody
dispose
in interface Disposable
dispose
in class SingleBody
SingleBody
SingleBody
(optional operation).
The general contract of this method is as follows:
SingleBody.getParent()
on the copy returns null
.
That means that the copy is detached from the parent entity of this
SingleBody
. The copy may get attached to a different
entity later on.SingleBody
.
This implementation always throws an
UnsupportedOperationException
.
copy
in class SingleBody
SingleBody
.