public class RpcRshOutputStream extends OutputStream
This class does the most basic conversion of outgoing bytes to the (TCP/IP) wire from a Java IO output stream whose contents have been encoded upstream.
Modifier and Type | Field and Description |
---|---|
static String |
TRACE_PREFIX |
Constructor and Description |
---|
RpcRshOutputStream(OutputStream outputstream,
ServerStats stats)
Construct a suitable stream for the passed-in inputstream.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
protected OutputStream |
getRshStream() |
protected void |
setRshStream(OutputStream rshStream) |
String |
toString() |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int offset,
int len) |
void |
write(int b) |
public static final String TRACE_PREFIX
public RpcRshOutputStream(OutputStream outputstream, ServerStats stats)
outputstream
- non-null OutputStreamstats
- non-null ServerStatspublic void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] bytes) throws IOException
write
in class OutputStream
IOException
public void write(byte[] bytes, int offset, int len) 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 class OutputStream
IOException
protected OutputStream getRshStream()
protected void setRshStream(OutputStream rshStream)
Copyright © 2017 Perforce Software. All Rights Reserved.