Class ServletOutputStreamWrapper
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
com.webmethods.caf.faces.context.inproc.ServletOutputStreamWrapper
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Wraps a regular OutputStream with a ServletOutputStream.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServletOutputStreamWrapper
(OutputStream wrapped) ServletOutputStreamWrapper
(OutputStream wrapped, String characterEncoding) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
boolean
isReady()
void
print
(char c) void
void
println
(char c) void
void
setCharacterEncoding
(String characterEncoding) void
setWrapped
(OutputStream wrapped) void
setWriteListener
(WriteListener listener) void
write
(byte[] b) void
write
(byte[] b, int off, int len) void
write
(int b) Methods inherited from class javax.servlet.ServletOutputStream
print, print, print, print, print, println, println, println, println, println, println
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
m_wrapped
-
m_characterEncoding
-
-
Constructor Details
-
ServletOutputStreamWrapper
public ServletOutputStreamWrapper() -
ServletOutputStreamWrapper
-
ServletOutputStreamWrapper
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- 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
-
getWrapped
-
setWrapped
-
getCharacterEncoding
-
setCharacterEncoding
-
isReady
public boolean isReady()- Specified by:
isReady
in classServletOutputStream
-
setWriteListener
- Specified by:
setWriteListener
in classServletOutputStream
-