Package io.undertow.servlet.spec
Class UpgradeServletOutputStream
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
io.undertow.servlet.spec.UpgradeServletOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class UpgradeServletOutputStream
extends javax.servlet.ServletOutputStream
Output stream used for upgraded requests. This is different to
ServletOutputStreamImpl
as it does no buffering, and it not tied to an exchange.- Author:
- Stuart Douglas
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
UpgradeServletOutputStream
(org.xnio.channels.StreamSinkChannel channel, Executor ioExecutor) -
Method Summary
Methods inherited from class javax.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
UpgradeServletOutputStream
protected UpgradeServletOutputStream(org.xnio.channels.StreamSinkChannel channel, Executor ioExecutor)
-
-
Method Details
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
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
-
isReady
public boolean isReady()- Specified by:
isReady
in classjavax.servlet.ServletOutputStream
-
setWriteListener
public void setWriteListener(javax.servlet.WriteListener writeListener) - Specified by:
setWriteListener
in classjavax.servlet.ServletOutputStream
-