java.io.Closeable
, java.io.Flushable
, java.lang.AutoCloseable
public class UpgradeServletOutputStream
extends javax.servlet.ServletOutputStream
ServletOutputStreamImpl
as it does no buffering, and it not tied to an exchange.Modifier | Constructor | Description |
---|---|---|
protected |
UpgradeServletOutputStream(org.xnio.channels.StreamSinkChannel channel,
java.util.concurrent.Executor ioExecutor) |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
void |
flush() |
|
boolean |
isReady() |
|
void |
setWriteListener(javax.servlet.WriteListener writeListener) |
|
void |
write(byte[] b) |
|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int b) |
protected UpgradeServletOutputStream(org.xnio.channels.StreamSinkChannel channel, java.util.concurrent.Executor ioExecutor)
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
public boolean isReady()
isReady
in class javax.servlet.ServletOutputStream
public void setWriteListener(javax.servlet.WriteListener writeListener)
setWriteListener
in class javax.servlet.ServletOutputStream
Copyright © 2018. All rights reserved.