Package com.aoapps.servlet.subrequest
Class ThreadSafeServletOutputStream
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
com.aoapps.servlet.subrequest.ThreadSafeServletOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Synchronizes access to the wrapped output stream.
-
Constructor Summary
Constructors -
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) voidvoidvoidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
ThreadSafeServletOutputStream
-
-
Method Details
-
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 classOutputStream- Throws:
IOException
-
print
- Overrides:
printin classServletOutputStream- Throws:
IOException
-
print
- Overrides:
printin classServletOutputStream- Throws:
IOException
-
print
- Overrides:
printin classServletOutputStream- Throws:
IOException
-
print
- Overrides:
printin classServletOutputStream- Throws:
IOException
-
print
- Overrides:
printin classServletOutputStream- Throws:
IOException
-
print
- Overrides:
printin classServletOutputStream- Throws:
IOException
-
print
- Overrides:
printin classServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classServletOutputStream- Throws:
IOException
-
println
- Overrides:
printlnin classServletOutputStream- Throws:
IOException
-
isReady
public boolean isReady()- Specified by:
isReadyin classServletOutputStream
-
setWriteListener
- Specified by:
setWriteListenerin classServletOutputStream
-
