com.sitemesh.filter
Class PageOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--javax.servlet.ServletOutputStream
|
+--com.sitemesh.filter.PageOutputStream
- public class PageOutputStream
- extends javax.servlet.ServletOutputStream
Implementation of ServletOutputStream that stores all data written
to it in a temporary buffer accessible from getBytes()
.
- Version:
- $Revision: 1.2 $
- Author:
- Joe Walnes
Method Summary |
void |
close()
|
void |
flush()
|
byte[] |
getBytes()
Return all data that has been written to this OutputStream. |
void |
write(byte[] b,
int o,
int l)
|
void |
write(int i)
|
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 |
write |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PageOutputStream
public PageOutputStream()
write
public void write(byte[] b,
int o,
int l)
throws java.io.IOException
- Overrides:
- write in class java.io.OutputStream
write
public void write(int i)
throws java.io.IOException
- Overrides:
- write in class java.io.OutputStream
flush
public void flush()
throws java.io.IOException
- Overrides:
- flush in class java.io.OutputStream
close
public void close()
throws java.io.IOException
- Overrides:
- close in class java.io.OutputStream
getBytes
public byte[] getBytes()
throws java.io.IOException
- Return all data that has been written to this OutputStream.