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