public class MultiPartOutputStream extends FilterOutputStream
Modifier and Type | Field and Description |
---|---|
static String |
MULTIPART_MIXED |
static String |
MULTIPART_X_MIXED_REPLACE |
out
Constructor and Description |
---|
MultiPartOutputStream(OutputStream out) |
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.
|
void |
write(byte[] b,
int off,
int len) |
flush, write, write
public static String MULTIPART_MIXED
public static String MULTIPART_X_MIXED_REPLACE
public MultiPartOutputStream(OutputStream out) 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
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.