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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
boolean
isReady()
void
print
(boolean b) void
print
(char c) void
print
(double d) void
print
(float f) void
print
(int i) void
print
(long l) void
void
println()
void
println
(boolean b) void
println
(char c) void
println
(double d) void
println
(float f) void
println
(int i) void
println
(long l) void
void
void
write
(byte[] b) void
write
(byte[] b, int off, int len) void
write
(int b) Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
ThreadSafeServletOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
print
- Overrides:
print
in classServletOutputStream
- Throws:
IOException
-
print
- Overrides:
print
in classServletOutputStream
- Throws:
IOException
-
print
- Overrides:
print
in classServletOutputStream
- Throws:
IOException
-
print
- Overrides:
print
in classServletOutputStream
- Throws:
IOException
-
print
- Overrides:
print
in classServletOutputStream
- Throws:
IOException
-
print
- Overrides:
print
in classServletOutputStream
- Throws:
IOException
-
print
- Overrides:
print
in classServletOutputStream
- Throws:
IOException
-
println
- Overrides:
println
in classServletOutputStream
- Throws:
IOException
-
println
- Overrides:
println
in classServletOutputStream
- Throws:
IOException
-
println
- Overrides:
println
in classServletOutputStream
- Throws:
IOException
-
println
- Overrides:
println
in classServletOutputStream
- Throws:
IOException
-
println
- Overrides:
println
in classServletOutputStream
- Throws:
IOException
-
println
- Overrides:
println
in classServletOutputStream
- Throws:
IOException
-
println
- Overrides:
println
in classServletOutputStream
- Throws:
IOException
-
println
- Overrides:
println
in classServletOutputStream
- Throws:
IOException
-
isReady
public boolean isReady()- Specified by:
isReady
in classServletOutputStream
-
setWriteListener
- Specified by:
setWriteListener
in classServletOutputStream
-