Package org.apache.xmlrpc.webserver
Class ServletOutputStreamImpl
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
org.apache.xmlrpc.webserver.ServletOutputStreamImpl
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
class ServletOutputStreamImpl
extends javax.servlet.ServletOutputStream
Default implementation of a servlet output stream.
Handles output of HTTP headers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]
private int
private boolean
private boolean
private final HttpServletResponseImpl
private final OutputStream
-
Constructor Summary
ConstructorsConstructorDescriptionServletOutputStreamImpl
(OutputStream pTarget, HttpServletResponseImpl pResponse) -
Method Summary
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
nullOutputStream, write
-
Field Details
-
target
-
res
-
buffer
private final byte[] buffer -
bufferOffset
private int bufferOffset -
closed
private boolean closed -
committed
private boolean committed
-
-
Constructor Details
-
ServletOutputStreamImpl
ServletOutputStreamImpl(OutputStream pTarget, HttpServletResponseImpl pResponse)
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
reset
void reset() -
isCommitted
boolean isCommitted() -
isReady
public boolean isReady()- Specified by:
isReady
in classjavax.servlet.ServletOutputStream
-
setWriteListener
public void setWriteListener(javax.servlet.WriteListener arg0) - Specified by:
setWriteListener
in classjavax.servlet.ServletOutputStream
-