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, write
public static final String MULTIPART_MIXED
public static final String MULTIPART_X_MIXED_REPLACE
public MultiPartWriter(Writer out) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterWriter
IOException
- IOExceptionpublic String getBoundary()
public void startPart(String contentType) throws IOException
IOException
public void endPart() throws IOException
IOException
public void startPart(String contentType, String[] headers) throws IOException
IOException
Copyright © 1995-2015 Webtide. All Rights Reserved.