Package org.bedework.util.servlet.io
Class ByteArrayServletStream
- java.lang.Object
-
- java.io.OutputStream
-
- javax.servlet.ServletOutputStream
-
- org.bedework.util.servlet.io.ByteArrayServletStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ByteArrayServletStream extends javax.servlet.ServletOutputStreamUseful I/O classes for filtering etc.- Author:
- Mike Douglass douglm@rpi.edu.
-
-
Constructor Summary
Constructors Constructor Description ByteArrayServletStream(PooledBufferedOutputStream pbos)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisReady()voidsetWriteListener(javax.servlet.WriteListener writeListener)voidwrite(int param)-
Methods inherited from class javax.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println
-
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write, write
-
-
-
-
Constructor Detail
-
ByteArrayServletStream
public ByteArrayServletStream(PooledBufferedOutputStream pbos)
Constructor- Parameters:
pbos-
-
-
Method Detail
-
write
public void write(int param) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream
-
isReady
public boolean isReady()
- Specified by:
isReadyin classjavax.servlet.ServletOutputStream
-
setWriteListener
public void setWriteListener(javax.servlet.WriteListener writeListener)
- Specified by:
setWriteListenerin classjavax.servlet.ServletOutputStream
-
-