Package org.apache.solr.servlet
Class ServletOutputStreamWrapper
java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
org.apache.solr.servlet.ServletOutputStreamWrapper
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ServletOutputStreamWrapper
extends jakarta.servlet.ServletOutputStream
Provides a convenient extension of the
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanvoidflush()inthashCode()booleanisReady()voidprint(boolean arg0) voidprint(char c) voidprint(double d) voidprint(float f) voidprint(int i) voidprint(long l) voidvoidprintln()voidprintln(boolean b) voidprintln(char c) voidprintln(double d) voidprintln(float f) voidprintln(int i) voidprintln(long l) voidvoidsetWriteListener(jakarta.servlet.WriteListener arg0) toString()voidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
ServletOutputStreamWrapper
public ServletOutputStreamWrapper(jakarta.servlet.ServletOutputStream stream)
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
isReady
public boolean isReady()- Specified by:
isReadyin classjakarta.servlet.ServletOutputStream
-
print
- Overrides:
printin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
print
- Overrides:
printin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
print
- Overrides:
printin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
print
- Overrides:
printin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
print
- Overrides:
printin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
print
- Overrides:
printin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
print
- Overrides:
printin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
setWriteListener
public void setWriteListener(jakarta.servlet.WriteListener arg0) - Specified by:
setWriteListenerin classjakarta.servlet.ServletOutputStream
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
toString
-