public class MultiPartOutputStream extends FilterOutputStream
out| Constructor and Description |
|---|
MultiPartOutputStream(OutputStream out,
String encoding) |
| 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.
|
flush, write, write, writepublic MultiPartOutputStream(OutputStream out, String encoding) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOException - IOExceptionpublic String getBoundary()
public OutputStream getOut()
public void startPart(String contentType) throws IOException
IOExceptionpublic void startPart(String contentType, String[] headers) throws IOException
IOExceptionCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.