Package org.apache.xmlrpc.webserver
Class ServletOutputStreamImpl
- java.lang.Object
-
- java.io.OutputStream
-
- javax.servlet.ServletOutputStream
-
- org.apache.xmlrpc.webserver.ServletOutputStreamImpl
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
class ServletOutputStreamImpl extends javax.servlet.ServletOutputStreamDefault implementation of a servlet output stream. Handles output of HTTP headers.
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]bufferprivate intbufferOffsetprivate booleanclosedprivate booleancommittedprivate HttpServletResponseImplresprivate java.io.OutputStreamtarget
-
Constructor Summary
Constructors Constructor Description ServletOutputStreamImpl(java.io.OutputStream pTarget, HttpServletResponseImpl pResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()private voidflush(boolean pClosing)(package private) booleanisCommitted()booleanisReady()(package private) voidreset()voidsetWriteListener(javax.servlet.WriteListener arg0)voidwrite(byte[] pChars, int pOffset, int pLen)voidwrite(int b)
-
-
-
Field Detail
-
target
private final java.io.OutputStream target
-
res
private final HttpServletResponseImpl res
-
buffer
private final byte[] buffer
-
bufferOffset
private int bufferOffset
-
closed
private boolean closed
-
committed
private boolean committed
-
-
Constructor Detail
-
ServletOutputStreamImpl
ServletOutputStreamImpl(java.io.OutputStream pTarget, HttpServletResponseImpl pResponse)
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOException- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] pChars, int pOffset, int pLen) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
flush
private void flush(boolean pClosing) throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream- Throws:
java.io.IOException
-
reset
void reset()
-
isCommitted
boolean isCommitted()
-
isReady
public boolean isReady()
- Specified by:
isReadyin classjavax.servlet.ServletOutputStream
-
setWriteListener
public void setWriteListener(javax.servlet.WriteListener arg0)
- Specified by:
setWriteListenerin classjavax.servlet.ServletOutputStream
-
-