Package org.apache.catalina.ssi
Class ByteArrayServletOutputStream
java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
org.apache.catalina.ssi.ByteArrayServletOutputStream
- All Implemented Interfaces:
- Closeable,- Flushable,- AutoCloseable
Class that extends ServletOutputStream, used as a wrapper from within 
SsiInclude- Author:
- Bip Thelin
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final ByteArrayOutputStreamOur buffer to hold the stream.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanisReady()TODO SERVLET 3.1voidsetWriteListener(WriteListener listener) TODO SERVLET 3.1byte[]voidwrite(int b) Write to our buffer.Methods inherited from class jakarta.servlet.ServletOutputStreamprint, print, print, print, print, print, print, println, println, println, println, println, println, println, printlnMethods inherited from class java.io.OutputStreamclose, flush, nullOutputStream, write, write
- 
Field Details- 
bufOur buffer to hold the stream.
 
- 
- 
Constructor Details- 
ByteArrayServletOutputStreampublic ByteArrayServletOutputStream()Construct a new ServletOutputStream.
 
- 
- 
Method Details- 
toByteArraypublic byte[] toByteArray()- Returns:
- the byte array.
 
- 
writepublic void write(int b) Write to our buffer.- Specified by:
- writein class- OutputStream
- Parameters:
- b- The parameter to write
 
- 
isReadypublic boolean isReady()TODO SERVLET 3.1- Specified by:
- isReadyin class- ServletOutputStream
- Returns:
- trueif data can be written, else- false
 
- 
setWriteListenerTODO SERVLET 3.1- Specified by:
- setWriteListenerin class- ServletOutputStream
- Parameters:
- listener- The non-blocking IO write listener
 
 
-