- java.lang.Object
- 
- java.io.OutputStream
- 
- jakarta.servlet.ServletOutputStream
- 
- org.omnifaces.io.DefaultServletOutputStream
 
 
 
- 
- All Implemented Interfaces:
- Closeable,- Flushable,- AutoCloseable
 
 public class DefaultServletOutputStream extends ServletOutputStream A default implementation of abstract servlet output stream. - Since:
- 2.6
- Author:
- Bauke Scholtz
 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultServletOutputStream(OutputStream output)Constructs a default servlet output stream which delegates to given output stream.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()booleanisReady()voidsetWriteListener(WriteListener listener)voidwrite(byte[] bytes)voidwrite(byte[] bytes, int offset, int length)voidwrite(int b)- 
Methods inherited from class jakarta.servlet.ServletOutputStreamprint, print, print, print, print, print, print, println, println, println, println, println, println, println, println
 - 
Methods inherited from class java.io.OutputStreamnullOutputStream
 
- 
 
- 
- 
- 
Constructor Detail- 
DefaultServletOutputStreampublic DefaultServletOutputStream(OutputStream output) Constructs a default servlet output stream which delegates to given output stream.- Parameters:
- output- The output stream to let this servlet output stream delegate to.
 
 
- 
 - 
Method Detail- 
setWriteListenerpublic void setWriteListener(WriteListener listener) - Specified by:
- setWriteListenerin class- ServletOutputStream
 
 - 
isReadypublic boolean isReady() - Specified by:
- isReadyin class- ServletOutputStream
 
 - 
writepublic void write(int b) throws IOException- Specified by:
- writein class- OutputStream
- Throws:
- IOException
 
 - 
writepublic void write(byte[] bytes) throws IOException- Overrides:
- writein class- OutputStream
- Throws:
- IOException
 
 - 
writepublic void write(byte[] bytes, int offset, int length) throws IOException- Overrides:
- writein class- OutputStream
- Throws:
- IOException
 
 - 
flushpublic void flush() throws IOException- Specified by:
- flushin interface- Flushable
- Overrides:
- flushin class- OutputStream
- Throws:
- IOException
 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- OutputStream
- Throws:
- IOException
 
 
- 
 
-