public class ChannelOutputStream extends OutputStream implements Channel, ChannelHolder
Constructor and Description |
---|
ChannelOutputStream(AbstractChannel channel,
Window remoteWindow,
Duration maxWaitTimeout,
org.slf4j.Logger log,
byte cmd,
boolean eofOnClose) |
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) |
write
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 ChannelOutputStream(AbstractChannel channel, Window remoteWindow, Duration maxWaitTimeout, org.slf4j.Logger log, byte cmd, boolean eofOnClose)
public AbstractChannel getChannel()
getChannel
in interface ChannelHolder
Channel
instancepublic boolean isEofOnClose()
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–2022 The Apache Software Foundation. All rights reserved.