All Packages Class Hierarchy This Package Previous Next Index
Class org.apache.tomcat.core.BufferedServletOutputStream
java.lang.Object
|
+----java.io.OutputStream
|
+----javax.servlet.ServletOutputStream
|
+----org.apache.tomcat.core.BufferedServletOutputStream
- public class BufferedServletOutputStream
- extends ServletOutputStream
Works only if you extend ResponseImpl and override doWrite() -
all other implementations of Response should provide their own Stream
- Author:
- James Duncan Davidson [duncan@eng.sun.com], Jason Hunter [jch@eng.sun.com], James Todd [gonzo@eng.sun.com], Mandar Raje [mandar@eng.sun.com]
-
buffer
-
-
bufferCount
-
-
bufferSize
-
-
closed
-
-
committed
-
-
DEFAULT_BUFFER_SIZE
-
-
sm
-
-
totalCount
-
-
usingWriter
-
-
BufferedServletOutputStream()
-
-
BufferedServletOutputStream(Response)
-
-
close()
-
-
doWrite(byte[], int, int)
-
-
flush()
-
-
getBufferSize()
-
-
isCommitted()
-
-
isContentWritten()
-
-
print(String)
- Writes a
String to the client,
without a carriage return-line feed (CRLF)
character at the end.
-
reallyFlush()
-
-
recycle()
- Reuse the object instance, avoid GC
-
reset()
-
-
sendHeaders()
-
-
setBufferSize(int)
-
-
setResponse(Response)
-
-
setUsingWriter(boolean)
-
-
write(byte[])
-
-
write(byte[], int, int)
-
-
write(int)
-
sm
protected StringManager sm
usingWriter
protected boolean usingWriter
DEFAULT_BUFFER_SIZE
protected static final int DEFAULT_BUFFER_SIZE
buffer
protected byte buffer[]
bufferSize
protected int bufferSize
bufferCount
protected int bufferCount
totalCount
protected int totalCount
committed
protected boolean committed
closed
protected boolean closed
BufferedServletOutputStream
protected BufferedServletOutputStream()
BufferedServletOutputStream
protected BufferedServletOutputStream(Response resA)
doWrite
protected void doWrite(byte buffer[],
int pos,
int count) throws IOException
sendHeaders
protected void sendHeaders() throws IOException
setResponse
public void setResponse(Response response)
setUsingWriter
public void setUsingWriter(boolean uwrt)
write
public void write(int i) throws IOException
- Overrides:
- write in class OutputStream
write
public void write(byte b[]) throws IOException
- Overrides:
- write in class OutputStream
write
public void write(byte b[],
int off,
int len) throws IOException
- Overrides:
- write in class OutputStream
print
public void print(String s) throws IOException
- Writes a
String to the client,
without a carriage return-line feed (CRLF)
character at the end.
- Overrides:
- print in class ServletOutputStream
flush
public void flush() throws IOException
- Overrides:
- flush in class OutputStream
reallyFlush
public void reallyFlush() throws IOException
close
public void close() throws IOException
- Overrides:
- close in class OutputStream
isContentWritten
public boolean isContentWritten()
isCommitted
public boolean isCommitted()
getBufferSize
public int getBufferSize()
setBufferSize
public void setBufferSize(int size) throws IllegalStateException
reset
public void reset() throws IllegalStateException
recycle
public void recycle()
- Reuse the object instance, avoid GC
All Packages Class Hierarchy This Package Previous Next Index