public class MultiPartOutputStream
extends java.io.FilterOutputStream
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MULTIPART_MIXED |
static java.lang.String |
MULTIPART_X_MIXED_REPLACE |
Constructor and Description |
---|
MultiPartOutputStream(java.io.OutputStream out,
java.lang.String boundary) |
Modifier and Type | Method and Description |
---|---|
void |
close()
End the current part.
|
java.lang.String |
getBoundary() |
java.io.OutputStream |
getOut() |
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 MultiPartOutputStream(java.io.OutputStream out, java.lang.String boundary) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterOutputStream
java.io.IOException
- IOExceptionpublic java.lang.String getBoundary()
public java.io.OutputStream getOut()
public void startPart(java.lang.String contentType) throws java.io.IOException
java.io.IOException
public void startPart(java.lang.String contentType, java.lang.String[] headers) throws java.io.IOException
java.io.IOException
Copyright © 2019 Potix Corporation. All rights reserved.