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
Handle a multipart MIME response.
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FilterOutputStream
flush, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
MULTIPART_MIXED
- See Also:
-
MULTIPART_X_MIXED_REPLACE
- See Also:
-
-
Constructor Details
-
MultiPartOutputStream
- Throws:
IOException
-
MultiPartOutputStream
- Throws:
IOException
-
-
Method Details
-
close
End the current part.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
- Throws:
IOException
- IOException
-
getBoundary
-
getOut
-
startPart
Start creation of the next Content.- Parameters:
contentType
- the content type of the part- Throws:
IOException
- if unable to write the part
-
startPart
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
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-