public static class MessageBodyWebRequest.InputStreamMessageBody extends MessageBody
Constructor and Description |
---|
MessageBodyWebRequest.InputStreamMessageBody(InputStream source,
String contentType) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Returns the content type of this message body.
|
void |
writeTo(OutputStream outputStream,
ParameterCollection parameters)
Transmits the body of this request as a sequence of bytes.
|
createPostMethodMessageBody, getCharacterSet
public MessageBodyWebRequest.InputStreamMessageBody(InputStream source, String contentType)
public String getContentType()
getContentType
in class MessageBody
public void writeTo(OutputStream outputStream, ParameterCollection parameters) throws IOException
writeTo
in class MessageBody
IOException
Copyright © 2012. All Rights Reserved.