org.locomotive.loco
Class Response.ResponseOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--javax.servlet.ServletOutputStream
|
+--org.locomotive.loco.Response.ResponseOutputStream
- Enclosing class:
- Response
- protected class Response.ResponseOutputStream
- extends javax.servlet.ServletOutputStream
our little ServletOutputStream.
It stores everything in a ByteArrayOutputStream, and sends it all
out when we flush. Note that flush will automatically send the
headers out, so we don't need to worry about that.
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.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Response.ResponseOutputStream
protected Response.ResponseOutputStream(java.io.OutputStream os)
write
public void write(int i)
- required
- Overrides:
- write in class java.io.OutputStream
write
public void write(byte[] b)
- Overrides:
- write in class java.io.OutputStream
write
public void write(byte[] b,
int start,
int len)
- Overrides:
- write in class java.io.OutputStream
flush
public void flush()
throws java.io.IOException
- Overrides:
- flush in class java.io.OutputStream
flush
public void flush(Log server_log)
throws java.io.IOException
reset
public void reset()
size
public int size()
close
public void close()
throws java.io.IOException
- Overrides:
- close in class java.io.OutputStream