Top Description Fields Constructors Methods
org.eclipse.jetty.util

public Class MultiPartWriter

extends FilterWriter
Class Inheritance
Imports
java.io.FilterWriter, .IOException, .Writer

Handle a multipart MIME response.

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private String
private boolean
public static final String
public static final String
Inherited from java.io.FilterWriter:
out

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides java.io.FilterWriter.close.

Implements java.io.Closeable.close.

End the current part.
public void
endPart()

end creation of the next Content.

public String
public void
startPart(String
the content type
contentType
)

Start creation of the next Content.

public void
startPart(String
the content type of the part
contentType
,
String[]
the part headers
headers
)

Start creation of the next Content.

Inherited from java.io.FilterWriter:
flushwritewritewrite

Field Detail

__CRLFback to summary
private static final String __CRLF
__DASHDASHback to summary
private static final String __DASHDASH
boundaryback to summary
private String boundary
inPartback to summary
private boolean inPart
MULTIPART_MIXEDback to summary
public static final String MULTIPART_MIXED
MULTIPART_X_MIXED_REPLACEback to summary
public static final String MULTIPART_X_MIXED_REPLACE

Constructor Detail

MultiPartWriterback to summary
public MultiPartWriter(Writer out) throws IOException

Method Detail

closeback to summary
public void close() throws IOException

Overrides java.io.FilterWriter.close.

Implements java.io.Closeable.close.

End the current part.

Annotations
@Override
Exceptions
IOException:
IOException
endPartback to summary
public void endPart() throws IOException

end creation of the next Content.

Exceptions
IOException:
if unable to write the part
getBoundaryback to summary
public String getBoundary()
startPartback to summary
public void startPart(String contentType) throws IOException

Start creation of the next Content.

Parameters
contentType:String

the content type

Exceptions
IOException:
if unable to write the part
startPartback to summary
public void startPart(String contentType, String[] headers) throws IOException

Start creation of the next Content.

Parameters
contentType:String

the content type of the part

headers:String[]

the part headers

Exceptions
IOException:
if unable to write the part