public class RpcRshInputStream extends InputStream
This class does the most basic conversion from incoming bytes on the (TCP/IP) wire to a Java IO input stream whose contents are further decoded upstream.
| Modifier and Type | Field and Description |
|---|---|
static String |
TRACE_PREFIX |
| Constructor and Description |
|---|
RpcRshInputStream(InputStream inputstream,
ServerStats stats)
Construct a suitable stream for the passed-in inputstream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
protected InputStream |
getRshStream() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] bytes) |
int |
read(byte[] bytes,
int offset,
int len) |
void |
reset() |
protected void |
setRshStream(InputStream rshStream) |
long |
skip(long n) |
String |
toString() |
public static final String TRACE_PREFIX
public RpcRshInputStream(InputStream inputstream, ServerStats stats)
inputstream - non-null InputStreamstats - non-null ServerStatspublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bytes)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bytes,
int offset,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreamprotected InputStream getRshStream()
protected void setRshStream(InputStream rshStream)
Copyright © 2017 Perforce Software. All Rights Reserved.