content
private byte[] content
HTTP content or an empty byte array by default.
HttpContent
, StreamingContent
final byte[]
long
getType()
null
for none.boolean
setContent(byte[] content)
setLength(long length)
-1
for unknown.null
for none.void
writeTo(OutputStream out)
-1
by default.null
by default.HttpContent
getLength
in interface HttpContent
IOException
HttpContent
null
for none.getType
in interface HttpContent
StreamingContent
Implementations must not close the output stream, and instead should flush the output stream. Some callers may assume that the the output stream has not been closed, and will fail to work if it has been closed.
writeTo
in interface HttpContent
writeTo
in interface StreamingContent
out
- output streamIOException
HttpContent
retrySupported
in interface HttpContent
Default value is an empty byte array.
-1
for unknown.
Default value is -1
.
null
for none.