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 InputStream
IOException
public int read(byte[] bytes) throws IOException
read
in class InputStream
IOException
public int read(byte[] bytes, int offset, int len) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public void mark(int readlimit)
mark
in class InputStream
public void reset() throws IOException
reset
in class InputStream
IOException
public boolean markSupported()
markSupported
in class InputStream
protected InputStream getRshStream()
protected void setRshStream(InputStream rshStream)
Copyright © 2017 Perforce Software. All Rights Reserved.