Package org.apache.juneau.rest.util
Class FinishableServletOutputStream
java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
org.apache.juneau.rest.util.FinishableServletOutputStream
- All Implemented Interfaces:
- Closeable,- Flushable,- AutoCloseable,- Finishable
public class FinishableServletOutputStream
extends jakarta.servlet.ServletOutputStream
implements Finishable
A wrapped finish()  method.
 
ServletOutputStream with an added See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidclose()voidfinish()CallsFinishable.finish()on the underlying output stream.final voidflush()booleanisReady()voidsetWriteListener(jakarta.servlet.WriteListener arg0) final voidwrite(byte[] b, int off, int len) final voidwrite(int b) Methods inherited from class jakarta.servlet.ServletOutputStreamprint, print, print, print, print, print, print, println, println, println, println, println, println, println, println, writeMethods inherited from class java.io.OutputStreamnullOutputStream, write
- 
Constructor Details- 
FinishableServletOutputStreamConstructor.- Parameters:
- os- The wrapped output stream.
 
 
- 
- 
Method Details- 
write- Overrides:
- writein class- OutputStream
- Throws:
- IOException
 
- 
write- Specified by:
- writein class- OutputStream
- Throws:
- IOException
 
- 
flush- Specified by:
- flushin interface- Flushable
- Overrides:
- flushin class- OutputStream
- Throws:
- IOException
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- jakarta.servlet.ServletOutputStream
- Throws:
- IOException
 
- 
isReady- Specified by:
- isReadyin class- jakarta.servlet.ServletOutputStream
 
- 
setWriteListener- Specified by:
- setWriteListenerin class- jakarta.servlet.ServletOutputStream
 
- 
finishCallsFinishable.finish()on the underlying output stream.A no-op if the underlying output stream does not implement the Finishableinterface.- Specified by:
- finishin interface- Finishable
- Throws:
- IOException- Thrown by underlying stream.
 
 
-