public class ServletOutputStreamWrapper
extends javax.servlet.ServletOutputStream
ServletOutputStream class that can be subclassed by developers wishing
to adapt the behavior of a Stream. One such example may be to override close() to instead be a no-op as in
SOLR-8933.
This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped stream.| Constructor and Description |
|---|
ServletOutputStreamWrapper(javax.servlet.ServletOutputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
equals(Object obj) |
void |
flush() |
int |
hashCode() |
boolean |
isReady() |
void |
print(boolean arg0) |
void |
print(char c) |
void |
print(double d) |
void |
print(float f) |
void |
print(int i) |
void |
print(long l) |
void |
print(String arg0) |
void |
println() |
void |
println(boolean b) |
void |
println(char c) |
void |
println(double d) |
void |
println(float f) |
void |
println(int i) |
void |
println(long l) |
void |
println(String s) |
void |
setWriteListener(javax.servlet.WriteListener arg0) |
String |
toString() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public ServletOutputStreamWrapper(javax.servlet.ServletOutputStream stream)
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic boolean isReady()
isReady in class javax.servlet.ServletOutputStreampublic void print(boolean arg0)
throws IOException
print in class javax.servlet.ServletOutputStreamIOExceptionpublic void print(char c)
throws IOException
print in class javax.servlet.ServletOutputStreamIOExceptionpublic void print(double d)
throws IOException
print in class javax.servlet.ServletOutputStreamIOExceptionpublic void print(float f)
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(String arg0) throws IOException
print in class javax.servlet.ServletOutputStreamIOExceptionpublic void println()
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(double d)
throws IOException
println in class javax.servlet.ServletOutputStreamIOExceptionpublic void println(float f)
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(String s) throws IOException
println in class javax.servlet.ServletOutputStreamIOExceptionpublic void setWriteListener(javax.servlet.WriteListener arg0)
setWriteListener in class javax.servlet.ServletOutputStreampublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.