public class MultiPartResponse extends Object
Constructor and Description |
---|
MultiPartResponse(HttpResponse response)
MultiPartResponse constructor.
|
MultiPartResponse(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
close()
End the current part.
|
String |
getBoundary() |
OutputStream |
getOut() |
void |
startPart(String contentType)
Start creation of the next Content.
|
void |
startPart(String contentType,
String[] headers)
Start creation of the next Content.
|
public MultiPartResponse(OutputStream out) throws IOException
IOException
public MultiPartResponse(HttpResponse response) throws IOException
IOException
public String getBoundary()
public OutputStream getOut()
public void startPart(String contentType) throws IOException
IOException
public void startPart(String contentType, String[] headers) throws IOException
IOException
public void close() throws IOException
IOException
- IOExceptionCopyright © 2013. All Rights Reserved.