public class MultiPartWriter extends FilterWriter
| Modifier and Type | Field and Description |
|---|---|
static String |
MULTIPART_MIXED |
static String |
MULTIPART_X_MIXED_REPLACE |
out| Constructor and Description |
|---|
MultiPartWriter(Writer out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
End the current part.
|
void |
endPart()
end creation of the next Content.
|
String |
getBoundary() |
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 static String MULTIPART_MIXED
public static String MULTIPART_X_MIXED_REPLACE
public MultiPartWriter(Writer out) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterWriterIOException - IOExceptionpublic String getBoundary()
public void startPart(String contentType) throws IOException
IOExceptionpublic void endPart()
throws IOException
IOExceptionpublic void startPart(String contentType, String[] headers) throws IOException
IOExceptionCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.