Interface HttpStreamParam
public interface HttpStreamParam
Defines a parameter to be submitted as part of a multipart/form-data
HTTP POST operation.
- Since:
- 21 Feb 2011
- Author:
- Mark Taylor
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the number of bytes that will be written to the output stream, if konwn.Returns the headers associated with this parameter.voidwriteContent(OutputStream out) Writes the data content of this parameter to a stream.
-
Method Details
-
getHttpHeaders
-
writeContent
Writes the data content of this parameter to a stream.- Parameters:
out- destination stream- Throws:
IOException
-
getContentLength
long getContentLength()Returns the number of bytes that will be written to the output stream, if konwn. If not known, -1 may be returned.- Returns:
- content length, or -1 if not known
-