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, write
public MultiPartOutputStream(OutputStream out, String encoding) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
- IOExceptionpublic String getBoundary()
public OutputStream getOut()
public void startPart(String contentType) throws IOException
IOException
public void startPart(String contentType, String[] headers) throws IOException
IOException
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.