Package org.glassfish.grizzly.servlet
Class ServletOutputStreamImpl
- java.lang.Object
-
- java.io.OutputStream
-
- jakarta.servlet.ServletOutputStream
-
- org.glassfish.grizzly.servlet.ServletOutputStreamImpl
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ServletOutputStreamImpl extends jakarta.servlet.ServletOutputStream- Author:
- Jeanfrancois Arcand
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServletOutputStreamImpl(HttpServletResponseImpl servletResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()Will send the buffer to the client.protected voidinitialize()booleanisReady()voidsetWriteListener(jakarta.servlet.WriteListener writeListener)voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int i)-
Methods inherited from class jakarta.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 Detail
-
ServletOutputStreamImpl
protected ServletOutputStreamImpl(HttpServletResponseImpl servletResponse)
-
-
Method Detail
-
initialize
protected void initialize() throws IOException- Throws:
IOException
-
write
public void write(int i) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOExceptionWill send the buffer to the client.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein 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
-
-