public class RoutableServletOutputStream
extends javax.servlet.ServletOutputStream
Modifier and Type | Class and Description |
---|---|
static interface |
RoutableServletOutputStream.DestinationFactory
Factory to lazily instantiate the destination.
|
Modifier and Type | Field and Description |
---|---|
private javax.servlet.ServletOutputStream |
destination |
private RoutableServletOutputStream.DestinationFactory |
factory |
Constructor and Description |
---|
RoutableServletOutputStream(RoutableServletOutputStream.DestinationFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
private javax.servlet.ServletOutputStream |
getDestination() |
boolean |
isReady() |
void |
print(boolean b) |
void |
print(char c) |
void |
print(double v) |
void |
print(float v) |
void |
print(int i) |
void |
print(long l) |
void |
print(java.lang.String s) |
void |
println() |
void |
println(boolean b) |
void |
println(char c) |
void |
println(double v) |
void |
println(float v) |
void |
println(int i) |
void |
println(long l) |
void |
println(java.lang.String s) |
void |
setWriteListener(WriteListener writeListener) |
void |
updateDestination(RoutableServletOutputStream.DestinationFactory factory) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
private javax.servlet.ServletOutputStream destination
private RoutableServletOutputStream.DestinationFactory factory
public RoutableServletOutputStream(RoutableServletOutputStream.DestinationFactory factory)
private javax.servlet.ServletOutputStream getDestination() throws java.io.IOException
java.io.IOException
public void updateDestination(RoutableServletOutputStream.DestinationFactory factory)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void print(java.lang.String s) throws java.io.IOException
print
in class javax.servlet.ServletOutputStream
java.io.IOException
public void print(boolean b) throws java.io.IOException
print
in class javax.servlet.ServletOutputStream
java.io.IOException
public void print(char c) throws java.io.IOException
print
in class javax.servlet.ServletOutputStream
java.io.IOException
public void print(int i) throws java.io.IOException
print
in class javax.servlet.ServletOutputStream
java.io.IOException
public void print(long l) throws java.io.IOException
print
in class javax.servlet.ServletOutputStream
java.io.IOException
public void print(float v) throws java.io.IOException
print
in class javax.servlet.ServletOutputStream
java.io.IOException
public void print(double v) throws java.io.IOException
print
in class javax.servlet.ServletOutputStream
java.io.IOException
public void println() throws java.io.IOException
println
in class javax.servlet.ServletOutputStream
java.io.IOException
public void println(java.lang.String s) throws java.io.IOException
println
in class javax.servlet.ServletOutputStream
java.io.IOException
public void println(boolean b) throws java.io.IOException
println
in class javax.servlet.ServletOutputStream
java.io.IOException
public void println(char c) throws java.io.IOException
println
in class javax.servlet.ServletOutputStream
java.io.IOException
public void println(int i) throws java.io.IOException
println
in class javax.servlet.ServletOutputStream
java.io.IOException
public void println(long l) throws java.io.IOException
println
in class javax.servlet.ServletOutputStream
java.io.IOException
public void println(float v) throws java.io.IOException
println
in class javax.servlet.ServletOutputStream
java.io.IOException
public void println(double v) throws java.io.IOException
println
in class javax.servlet.ServletOutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public boolean isReady()
public void setWriteListener(WriteListener writeListener)