Class ServletOutputStreamWrapper
java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
org.apache.felix.http.jakartawrappers.ServletOutputStreamWrapper
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ServletOutputStreamWrapper
extends jakarta.servlet.ServletOutputStream
Servlet output stream
-
Constructor Summary
ConstructorsConstructorDescriptionServletOutputStreamWrapper(javax.servlet.ServletOutputStream stream) Create new stream -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()booleanisReady()voidprint(boolean b) 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 writeListener) voidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class jakarta.servlet.ServletOutputStream
writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
ServletOutputStreamWrapper
public ServletOutputStreamWrapper(@NotNull javax.servlet.ServletOutputStream stream) Create new stream- Parameters:
stream- wrapped stream
-
-
Method Details
-
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
-
isReady
public boolean isReady()- Specified by:
isReadyin classjakarta.servlet.ServletOutputStream
-
setWriteListener
public void setWriteListener(jakarta.servlet.WriteListener writeListener) - 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
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classjakarta.servlet.ServletOutputStream- Throws:
IOException
-