Package org.eclipse.jetty.util
Class MultiPartOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.eclipse.jetty.util.MultiPartOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
@Deprecated(since="2021-05-27") public class MultiPartOutputStream extends java.io.FilterOutputStreamDeprecated.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 java.lang.StringMULTIPART_MIXEDDeprecated.static java.lang.StringMULTIPART_X_MIXED_REPLACEDeprecated.
-
Constructor Summary
Constructors Constructor Description MultiPartOutputStream(java.io.OutputStream out)Deprecated.MultiPartOutputStream(java.io.OutputStream out, java.lang.String boundary)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.End the current part.java.lang.StringgetBoundary()Deprecated.java.io.OutputStreamgetOut()Deprecated.voidstartPart(java.lang.String contentType)Deprecated.Start creation of the next Content.voidstartPart(java.lang.String contentType, java.lang.String[] headers)Deprecated.Start creation of the next Content.voidwrite(byte[] b, int off, int len)Deprecated.
-
-
-
Field Detail
-
MULTIPART_MIXED
public static final java.lang.String MULTIPART_MIXED
Deprecated.- See Also:
- Constant Field Values
-
MULTIPART_X_MIXED_REPLACE
public static final java.lang.String MULTIPART_X_MIXED_REPLACE
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MultiPartOutputStream
public MultiPartOutputStream(java.io.OutputStream out) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
MultiPartOutputStream
public MultiPartOutputStream(java.io.OutputStream out, java.lang.String boundary) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
-
Method Detail
-
close
public void close() throws java.io.IOExceptionDeprecated.End the current part.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterOutputStream- Throws:
java.io.IOException- IOException
-
getBoundary
public java.lang.String getBoundary()
Deprecated.
-
getOut
public java.io.OutputStream getOut()
Deprecated.
-
startPart
public void startPart(java.lang.String contentType) throws java.io.IOExceptionDeprecated.Start creation of the next Content.- Parameters:
contentType- the content type of the part- Throws:
java.io.IOException- if unable to write the part
-
startPart
public void startPart(java.lang.String contentType, java.lang.String[] headers) throws java.io.IOExceptionDeprecated.Start creation of the next Content.- Parameters:
contentType- the content type of the partheaders- the part headers- Throws:
java.io.IOException- if unable to write the part
-
write
public void write(byte[] b, int off, int len) throws java.io.IOExceptionDeprecated.- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
-