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.ServletOutputStreamServlet output stream
-
-
Constructor Summary
Constructors Constructor Description ServletOutputStreamWrapper(javax.servlet.ServletOutputStream stream)Create new stream
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()booleanisReady()voidprint(boolean b)voidprint(char c)voidprint(double d)voidprint(float f)voidprint(int i)voidprint(long l)voidprint(String s)voidprintln()voidprintln(boolean b)voidprintln(char c)voidprintln(double d)voidprintln(float f)voidprintln(int i)voidprintln(long l)voidprintln(String s)voidsetWriteListener(jakarta.servlet.WriteListener writeListener)voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Method Detail
-
print
public void print(String s) throws IOException
- Overrides:
printin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
print
public void print(boolean b) throws IOException- Overrides:
printin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
print
public void print(char c) throws IOException- Overrides:
printin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
print
public void print(int i) throws IOException- Overrides:
printin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
print
public void print(long l) throws IOException- Overrides:
printin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
print
public void print(float f) throws IOException- Overrides:
printin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
print
public void print(double d) throws IOException- Overrides:
printin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
public void println() throws IOException- Overrides:
printlnin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
public void println(String s) throws IOException
- Overrides:
printlnin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
public void println(boolean b) throws IOException- Overrides:
printlnin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
public void println(char c) throws IOException- Overrides:
printlnin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
public void println(int i) throws IOException- Overrides:
printlnin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
public void println(long l) throws IOException- Overrides:
printlnin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
public void println(float f) throws IOException- Overrides:
printlnin classjakarta.servlet.ServletOutputStream- Throws:
IOException
-
println
public void println(double d) throws IOException- 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
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
-