Package org.eclipse.jetty.util
Class MultiPartOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.eclipse.jetty.util.MultiPartOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
@Deprecated(since="2021-05-27") public class MultiPartOutputStream extends FilterOutputStream
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 MultiPartOutputStream(OutputStream out)Deprecated.MultiPartOutputStream(OutputStream out, String boundary)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.End the current part.StringgetBoundary()Deprecated.OutputStreamgetOut()Deprecated.voidstartPart(String contentType)Deprecated.Start creation of the next Content.voidstartPart(String contentType, String[] headers)Deprecated.Start creation of the next Content.voidwrite(byte[] b, int off, int len)Deprecated.-
Methods inherited from class java.io.FilterOutputStream
flush, write, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
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
-
MultiPartOutputStream
public MultiPartOutputStream(OutputStream out) throws IOException
Deprecated.- Throws:
IOException
-
MultiPartOutputStream
public MultiPartOutputStream(OutputStream out, String boundary) 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 classFilterOutputStream- Throws:
IOException- IOException
-
getBoundary
public String getBoundary()
Deprecated.
-
getOut
public OutputStream getOut()
Deprecated.
-
startPart
public void startPart(String contentType) throws IOException
Deprecated.Start creation of the next Content.- Parameters:
contentType- the content type of the part- 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
-
write
public void write(byte[] b, int off, int len) throws IOExceptionDeprecated.- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
-