public class ChannelOutputStream extends OutputStream implements Channel
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_WAIT_FOR_SPACE_TIMEOUT |
static String |
WAIT_FOR_SPACE_TIMEOUT
Configure max.
|
Constructor and Description |
---|
ChannelOutputStream(AbstractChannel channel,
Window remoteWindow,
org.slf4j.Logger log,
byte cmd) |
ChannelOutputStream(AbstractChannel channel,
Window remoteWindow,
long maxWaitTimeout,
org.slf4j.Logger log,
byte cmd) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
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) |
write
public 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)
public ChannelOutputStream(AbstractChannel channel, Window remoteWindow, long maxWaitTimeout, org.slf4j.Logger log, byte cmd)
public void setNoDelay(boolean noDelay)
public boolean isNoDelay()
public void write(int w) throws IOException
write
in class OutputStream
IOException
public void write(byte[] buf, int s, int l) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
close
in class OutputStream
IOException
protected void newBuffer(int size)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.