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 final String MULTIPART_MIXED
public static final 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
contentType - the content typeIOException - if unable to write the partpublic void endPart()
throws IOException
IOException - if unable to write the partpublic void startPart(String contentType, String[] headers) throws IOException
contentType - the content type of the partheaders - the part headersIOException - if unable to write the partCopyright © 1995–2017 Webtide. All rights reserved.