Class RoutableServletOutputStream
java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
com.opensymphony.module.sitemesh.filter.RoutableServletOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class RoutableServletOutputStream
extends jakarta.servlet.ServletOutputStream
Provides a ServletOutputStream that routes through to another ServletOutputStream, however the destination
can be changed at any point. The destination can be passed in using a factory, so it will not be created
until it's actually needed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFactory to lazily instantiate the destination. -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()booleanisReady()voidprint(boolean b) voidprint(char c) voidprint(double v) voidprint(float v) voidprint(int i) voidprint(long l) voidvoidprintln()voidprintln(boolean b) voidprintln(char c) voidprintln(double v) voidprintln(float v) voidprintln(int i) voidprintln(long l) voidvoidsetWriteListener(jakarta.servlet.WriteListener writeListener) voidvoidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
RoutableServletOutputStream
-
-
Method Details
-
updateDestination
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- 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
-
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
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- 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
-