public class RpcRshOutputStream
extends java.io.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 java.lang.String |
TRACE_PREFIX |
| Constructor and Description |
|---|
RpcRshOutputStream(java.io.OutputStream outputstream,
ServerStats stats)
Construct a suitable stream for the passed-in inputstream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
protected java.io.OutputStream |
getRshStream() |
protected void |
setRshStream(java.io.OutputStream rshStream) |
java.lang.String |
toString() |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int offset,
int len) |
void |
write(int b) |
public static final java.lang.String TRACE_PREFIX
public RpcRshOutputStream(java.io.OutputStream outputstream,
ServerStats stats)
outputstream - non-null OutputStreamstats - non-null ServerStatspublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] bytes)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] bytes,
int offset,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectprotected java.io.OutputStream getRshStream()
protected void setRshStream(java.io.OutputStream rshStream)
Copyright © 2021 Perforce Software. All Rights Reserved.