Top Description Fields Constructors Methods
org.mortbay.util

public Class MultiPartOutputStream

extends FilterOutputStream
Class Inheritance
Imports
java.io.FilterOutputStream, .IOException, .OutputStream

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

Field Summary

Modifier and TypeField and Description
private static byte[]
private static byte[]
private String
private byte[]
private boolean
public static String
public static String
Inherited from java.io.FilterOutputStream:
out

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides java.io.FilterOutputStream.close.

Implements java.io.Closeable.close.

End the current part.
public String
public OutputStream
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.FilterOutputStream:
flushwritewritewrite

Field Detail

__CRLFback to summary
private static byte[] __CRLF
__DASHDASHback to summary
private static byte[] __DASHDASH
boundaryback to summary
private String boundary
boundaryBytesback to summary
private byte[] boundaryBytes
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

MultiPartOutputStreamback to summary
public MultiPartOutputStream(OutputStream out) throws IOException

Method Detail

closeback to summary
public void close() throws IOException

Overrides java.io.FilterOutputStream.close.

Implements java.io.Closeable.close.

End the current part.

Exceptions
IOException:
IOException
getBoundaryback to summary
public String getBoundary()
getOutback to summary
public OutputStream getOut()
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.