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
IOExceptionpublic MultiPartResponse(HttpResponse response) throws IOException
IOExceptionpublic String getBoundary()
public OutputStream getOut()
public void startPart(String contentType) throws IOException
IOExceptionpublic void startPart(String contentType, String[] headers) throws IOException
IOExceptionpublic void close()
throws IOException
IOException - IOExceptionCopyright © 2013. All rights reserved.