public class ChannelOutputStream extends OutputStream implements Channel, ChannelHolder
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_WAIT_FOR_SPACE_TIMEOUT |
static String |
WAIT_FOR_SPACE_TIMEOUT
Configure max. wait time (millis) to wait for space to become available
|
| Constructor and Description |
|---|
ChannelOutputStream(AbstractChannel channel,
Window remoteWindow,
org.slf4j.Logger log,
byte cmd,
boolean eofOnClose) |
ChannelOutputStream(AbstractChannel channel,
Window remoteWindow,
long maxWaitTimeout,
org.slf4j.Logger log,
byte cmd,
boolean eofOnClose) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
AbstractChannel |
getChannel() |
boolean |
isEofOnClose() |
boolean |
isNoDelay() |
boolean |
isOpen() |
protected void |
newBuffer(int size) |
void |
setNoDelay(boolean noDelay) |
String |
toString() |
void |
write(byte[] buf,
int s,
int l) |
void |
write(int w) |
writepublic static final String WAIT_FOR_SPACE_TIMEOUT
public static final long DEFAULT_WAIT_FOR_SPACE_TIMEOUT
public ChannelOutputStream(AbstractChannel channel, Window remoteWindow, org.slf4j.Logger log, byte cmd, boolean eofOnClose)
public ChannelOutputStream(AbstractChannel channel, Window remoteWindow, long maxWaitTimeout, org.slf4j.Logger log, byte cmd, boolean eofOnClose)
public AbstractChannel getChannel()
getChannel in interface ChannelHolderChannel instancepublic boolean isEofOnClose()
public void setNoDelay(boolean noDelay)
public boolean isNoDelay()
public void write(int w)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] buf,
int s,
int l)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in class OutputStreamIOExceptionprotected void newBuffer(int size)
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.