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 Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public boolean isReady()
isReady
in class javax.servlet.ServletOutputStream
public void print(boolean arg0) 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(double d) throws IOException
print
in class javax.servlet.ServletOutputStream
IOException
public void print(float f) 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(String arg0) throws IOException
print
in class javax.servlet.ServletOutputStream
IOException
public void println() 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(double d) throws IOException
println
in class javax.servlet.ServletOutputStream
IOException
public void println(float f) 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(String s) throws IOException
println
in class javax.servlet.ServletOutputStream
IOException
public void setWriteListener(javax.servlet.WriteListener arg0)
setWriteListener
in class javax.servlet.ServletOutputStream
public void write(int b) throws IOException
write
in class OutputStream
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
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.