Package org.apache.solr.servlet
Class ServletOutputStreamWrapper
- java.lang.Object
- 
- java.io.OutputStream
- 
- javax.servlet.ServletOutputStream
- 
- org.apache.solr.servlet.ServletOutputStreamWrapper
 
 
 
- 
- All Implemented Interfaces:
- Closeable,- Flushable,- AutoCloseable
 
 public class ServletOutputStreamWrapper extends javax.servlet.ServletOutputStreamProvides a convenient extension of theServletOutputStreamclass that can be subclassed by developers wishing to adapt the behavior of a Stream. One such example may be to overrideclose()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 SummaryConstructors Constructor Description ServletOutputStreamWrapper(javax.servlet.ServletOutputStream stream)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanequals(Object obj)voidflush()inthashCode()booleanisReady()voidprint(boolean arg0)voidprint(char c)voidprint(double d)voidprint(float f)voidprint(int i)voidprint(long l)voidprint(String arg0)voidprintln()voidprintln(boolean b)voidprintln(char c)voidprintln(double d)voidprintln(float f)voidprintln(int i)voidprintln(long l)voidprintln(String s)voidsetWriteListener(javax.servlet.WriteListener arg0)StringtoString()voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)- 
Methods inherited from class java.io.OutputStreamnullOutputStream
 
- 
 
- 
- 
- 
Method Detail- 
flushpublic void flush() throws IOException- Specified by:
- flushin interface- Flushable
- Overrides:
- flushin class- OutputStream
- Throws:
- IOException
 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- OutputStream
- Throws:
- IOException
 
 - 
isReadypublic boolean isReady() - Specified by:
- isReadyin class- javax.servlet.ServletOutputStream
 
 - 
printpublic void print(boolean arg0) throws IOException- Overrides:
- printin class- javax.servlet.ServletOutputStream
- Throws:
- IOException
 
 - 
printpublic void print(char c) throws IOException- Overrides:
- printin class- javax.servlet.ServletOutputStream
- Throws:
- IOException
 
 - 
printpublic void print(double d) throws IOException- Overrides:
- printin class- javax.servlet.ServletOutputStream
- Throws:
- IOException
 
 - 
printpublic void print(float f) throws IOException- Overrides:
- printin class- javax.servlet.ServletOutputStream
- Throws:
- IOException
 
 - 
printpublic void print(int i) throws IOException- Overrides:
- printin class- javax.servlet.ServletOutputStream
- Throws:
- IOException
 
 - 
printpublic void print(long l) throws IOException- Overrides:
- printin class- javax.servlet.ServletOutputStream
- Throws:
- IOException
 
 - 
printpublic void print(String arg0) throws IOException - Overrides:
- printin class- javax.servlet.ServletOutputStream
- Throws:
- IOException
 
 - 
printlnpublic void println() throws IOException- Overrides:
- printlnin class- javax.servlet.ServletOutputStream
- Throws:
- IOException
 
 - 
printlnpublic void println(boolean b) throws IOException- Overrides:
- printlnin class- javax.servlet.ServletOutputStream
- Throws:
- IOException
 
 - 
printlnpublic void println(char c) throws IOException- Overrides:
- printlnin class- javax.servlet.ServletOutputStream
- Throws:
- IOException
 
 - 
printlnpublic void println(double d) throws IOException- Overrides:
- printlnin class- javax.servlet.ServletOutputStream
- Throws:
- IOException
 
 - 
printlnpublic void println(float f) throws IOException- Overrides:
- printlnin class- javax.servlet.ServletOutputStream
- Throws:
- IOException
 
 - 
printlnpublic void println(int i) throws IOException- Overrides:
- printlnin class- javax.servlet.ServletOutputStream
- Throws:
- IOException
 
 - 
printlnpublic void println(long l) throws IOException- Overrides:
- printlnin class- javax.servlet.ServletOutputStream
- Throws:
- IOException
 
 - 
printlnpublic void println(String s) throws IOException - Overrides:
- printlnin class- javax.servlet.ServletOutputStream
- Throws:
- IOException
 
 - 
setWriteListenerpublic void setWriteListener(javax.servlet.WriteListener arg0) - Specified by:
- setWriteListenerin class- javax.servlet.ServletOutputStream
 
 - 
writepublic void write(int b) throws IOException- Specified by:
- writein class- OutputStream
- Throws:
- IOException
 
 - 
writepublic void write(byte[] b) throws IOException- Overrides:
- writein class- OutputStream
- Throws:
- IOException
 
 - 
writepublic void write(byte[] b, int off, int len) throws IOException- Overrides:
- writein class- OutputStream
- Throws:
- IOException
 
 
- 
 
-