Closeable, Flushable, AutoCloseablepublic class RoutableServletOutputStream
extends javax.servlet.ServletOutputStream
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
RoutableServletOutputStream.DestinationFactory |
Factory to lazily instantiate the destination.
|
| Modifier and Type | Field | Description |
|---|---|---|
private javax.servlet.ServletOutputStream |
destination |
|
private RoutableServletOutputStream.DestinationFactory |
factory |
| Constructor | Description |
|---|---|
RoutableServletOutputStream(RoutableServletOutputStream.DestinationFactory factory) |
| Modifier and Type | Method | 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(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(String s) |
|
void |
setWriteListener(javax.servlet.WriteListener listener) |
|
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 IOException
IOExceptionpublic void updateDestination(RoutableServletOutputStream.DestinationFactory factory)
public void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void print(String s) throws IOException
print in class javax.servlet.ServletOutputStreamIOExceptionpublic void print(boolean b)
throws IOException
print in class javax.servlet.ServletOutputStreamIOExceptionpublic void print(char c)
throws IOException
print in class javax.servlet.ServletOutputStreamIOExceptionpublic void print(int i)
throws IOException
print in class javax.servlet.ServletOutputStreamIOExceptionpublic void print(long l)
throws IOException
print in class javax.servlet.ServletOutputStreamIOExceptionpublic void print(float v)
throws IOException
print in class javax.servlet.ServletOutputStreamIOExceptionpublic void print(double v)
throws IOException
print in class javax.servlet.ServletOutputStreamIOExceptionpublic void println()
throws IOException
println in class javax.servlet.ServletOutputStreamIOExceptionpublic void println(String s) throws IOException
println in class javax.servlet.ServletOutputStreamIOExceptionpublic void println(boolean b)
throws IOException
println in class javax.servlet.ServletOutputStreamIOExceptionpublic void println(char c)
throws IOException
println in class javax.servlet.ServletOutputStreamIOExceptionpublic void println(int i)
throws IOException
println in class javax.servlet.ServletOutputStreamIOExceptionpublic void println(long l)
throws IOException
println in class javax.servlet.ServletOutputStreamIOExceptionpublic void println(float v)
throws IOException
println in class javax.servlet.ServletOutputStreamIOExceptionpublic void println(double v)
throws IOException
println in class javax.servlet.ServletOutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void setWriteListener(javax.servlet.WriteListener listener)
setWriteListener in class javax.servlet.ServletOutputStreampublic boolean isReady()
isReady in class javax.servlet.ServletOutputStream