org.mortbay.util
Class MultiPartWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
org.mortbay.util.MultiPartWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class MultiPartWriter
- extends FilterWriter
Handle a multipart MIME response.
- Author:
- Greg Wilkins, Jim Crossley
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MULTIPART_MIXED
public static String MULTIPART_MIXED
MULTIPART_X_MIXED_REPLACE
public static String MULTIPART_X_MIXED_REPLACE
MultiPartWriter
public MultiPartWriter(Writer out)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- End the current part.
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterWriter
- Throws:
IOException
- IOException
getBoundary
public String getBoundary()
startPart
public void startPart(String contentType)
throws IOException
- Start creation of the next Content.
- Throws:
IOException
endPart
public void endPart()
throws IOException
- end creation of the next Content.
- Throws:
IOException
startPart
public void startPart(String contentType,
String[] headers)
throws IOException
- Start creation of the next Content.
- Throws:
IOException