Closeable
, Flushable
, AutoCloseable
public 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
IOException
public void updateDestination(RoutableServletOutputStream.DestinationFactory factory)
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
close
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void print(String s) throws IOException
print
in class javax.servlet.ServletOutputStream
IOException
public void print(boolean b) throws IOException
print
in class javax.servlet.ServletOutputStream
IOException
public void print(char c) throws IOException
print
in class javax.servlet.ServletOutputStream
IOException
public void print(int i) throws IOException
print
in class javax.servlet.ServletOutputStream
IOException
public void print(long l) throws IOException
print
in class javax.servlet.ServletOutputStream
IOException
public void print(float v) throws IOException
print
in class javax.servlet.ServletOutputStream
IOException
public void print(double v) throws IOException
print
in class javax.servlet.ServletOutputStream
IOException
public void println() throws IOException
println
in class javax.servlet.ServletOutputStream
IOException
public void println(String s) throws IOException
println
in class javax.servlet.ServletOutputStream
IOException
public void println(boolean b) throws IOException
println
in class javax.servlet.ServletOutputStream
IOException
public void println(char c) throws IOException
println
in class javax.servlet.ServletOutputStream
IOException
public void println(int i) throws IOException
println
in class javax.servlet.ServletOutputStream
IOException
public void println(long l) throws IOException
println
in class javax.servlet.ServletOutputStream
IOException
public void println(float v) throws IOException
println
in class javax.servlet.ServletOutputStream
IOException
public void println(double v) throws IOException
println
in class javax.servlet.ServletOutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void setWriteListener(javax.servlet.WriteListener listener)
setWriteListener
in class javax.servlet.ServletOutputStream
public boolean isReady()
isReady
in class javax.servlet.ServletOutputStream