Top Description Fields Constructors Methods
org.mortbay.util

public Class MultiPartWriter

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

Handle a multipart MIME response.
Authors
Greg Wilkins, Jim Crossley

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private String
private boolean
public static String
public static 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 contentType)

Start creation of the next Content.

public void
startPart(String contentType, String[] 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 String MULTIPART_MIXED
MULTIPART_X_MIXED_REPLACEback to summary
public static 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.

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

end creation of the next Content.

getBoundaryback to summary
public String getBoundary()
startPartback to summary
public void startPart(String contentType) throws IOException

Start creation of the next Content.

startPartback to summary
public void startPart(String contentType, String[] headers) throws IOException

Start creation of the next Content.