public class MultiPartWriter
extends java.io.FilterWriter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MULTIPART_MIXED |
static java.lang.String |
MULTIPART_X_MIXED_REPLACE |
| Constructor and Description |
|---|
MultiPartWriter(java.io.Writer out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
End the current part.
|
void |
endPart()
end creation of the next Content.
|
java.lang.String |
getBoundary() |
void |
startPart(java.lang.String contentType)
Start creation of the next Content.
|
void |
startPart(java.lang.String contentType,
java.lang.String[] headers)
Start creation of the next Content.
|
public static java.lang.String MULTIPART_MIXED
public static java.lang.String MULTIPART_X_MIXED_REPLACE
public MultiPartWriter(java.io.Writer out)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterWriterjava.io.IOException - IOExceptionpublic java.lang.String getBoundary()
public void startPart(java.lang.String contentType)
throws java.io.IOException
java.io.IOExceptionpublic void endPart()
throws java.io.IOException
java.io.IOExceptionpublic void startPart(java.lang.String contentType,
java.lang.String[] headers)
throws java.io.IOException
java.io.IOExceptionCopyright © 2013 FuseSource, Corp.. All Rights Reserved.