content
private byte[] content
HTTP content or an empty byte array by default.
HttpContent, StreamingContentfinal byte[]longgetType()null for none.booleansetContent(byte[] content) setLength(long length) -1 for unknown.null for none.voidwriteTo(OutputStream out) -1 by default.null by default.HttpContentgetLength in interface HttpContentIOExceptionHttpContentnull for none.getType in interface HttpContentStreamingContentImplementations must not close the output stream, and instead should flush the output stream. Some callers may assume that the output stream has not been closed, and will fail to work if it has been closed.
writeTo in interface HttpContentwriteTo in interface StreamingContentout - output streamIOExceptionHttpContentretrySupported in interface HttpContentDefault value is an empty byte array.
-1 for unknown.
Default value is -1.