Package org.eclipse.jetty.util
Class MultiPartWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.FilterWriter
-
- org.eclipse.jetty.util.MultiPartWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
@Deprecated(since="2021-05-27") public class MultiPartWriter extends FilterWriter
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Handle a multipart MIME response.
-
-
Field Summary
Fields Modifier and Type Field Description static StringMULTIPART_MIXEDDeprecated.static StringMULTIPART_X_MIXED_REPLACEDeprecated.
-
Constructor Summary
Constructors Constructor Description MultiPartWriter(Writer out)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.End the current part.voidendPart()Deprecated.end creation of the next Content.StringgetBoundary()Deprecated.voidstartPart(String contentType)Deprecated.Start creation of the next Content.voidstartPart(String contentType, String[] headers)Deprecated.Start creation of the next Content.-
Methods inherited from class java.io.FilterWriter
flush, write, write, write
-
-
-
-
Field Detail
-
MULTIPART_MIXED
public static final String MULTIPART_MIXED
Deprecated.- See Also:
- Constant Field Values
-
MULTIPART_X_MIXED_REPLACE
public static final String MULTIPART_X_MIXED_REPLACE
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MultiPartWriter
public MultiPartWriter(Writer out) throws IOException
Deprecated.- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOExceptionDeprecated.End the current part.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterWriter- Throws:
IOException- IOException
-
getBoundary
public String getBoundary()
Deprecated.
-
startPart
public void startPart(String contentType) throws IOException
Deprecated.Start creation of the next Content.- Parameters:
contentType- the content type- Throws:
IOException- if unable to write the part
-
endPart
public void endPart() throws IOExceptionDeprecated.end creation of the next Content.- Throws:
IOException- if unable to write the part
-
startPart
public void startPart(String contentType, String[] headers) throws IOException
Deprecated.Start creation of the next Content.- Parameters:
contentType- the content type of the partheaders- the part headers- Throws:
IOException- if unable to write the part
-
-