org.apache.tomcat.core
Class BufferedServletOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--javax.servlet.ServletOutputStream
|
+--org.apache.tomcat.core.BufferedServletOutputStream
- public class BufferedServletOutputStream
- extends javax.servlet.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]
Methods inherited from class javax.servlet.ServletOutputStream |
print,
print,
print,
print,
print,
print,
println,
println,
println,
println,
println,
println,
println,
println |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
sm
protected org.apache.tomcat.util.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
closed
protected boolean closed
BufferedServletOutputStream
protected BufferedServletOutputStream()
BufferedServletOutputStream
protected BufferedServletOutputStream(Response resA)
doWrite
protected void doWrite(byte[] buffer,
int pos,
int count)
throws java.io.IOException
sendHeaders
protected void sendHeaders()
throws java.io.IOException
setResponse
public void setResponse(Response response)
setUsingWriter
public void setUsingWriter(boolean uwrt)
write
public void write(int i)
throws java.io.IOException
- Overrides:
- write in class java.io.OutputStream
write
public void write(byte[] b)
throws java.io.IOException
- Overrides:
- write in class java.io.OutputStream
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
- write in class java.io.OutputStream
print
public void print(java.lang.String s)
throws java.io.IOException
- Overrides:
- print in class javax.servlet.ServletOutputStream
flush
public void flush()
throws java.io.IOException
- Overrides:
- flush in class java.io.OutputStream
reallyFlush
public void reallyFlush()
throws java.io.IOException
close
public void close()
throws java.io.IOException
- Overrides:
- close in class java.io.OutputStream
isContentWritten
public boolean isContentWritten()
getBufferSize
public int getBufferSize()
setBufferSize
public void setBufferSize(int size)
throws java.lang.IllegalStateException
reset
public void reset()
throws java.lang.IllegalStateException
recycle
public void recycle()
- Reuse the object instance, avoid GC
Copyright © 2000 Apache Software Foundation. All Rights Reserved.