protected static final class HostServerConnection.HostInputStream
extends java.lang.Object
Constructor and Description |
---|
HostServerConnection.HostInputStream(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
end()
Used to note the end of a datastream when debugging is enabled.
|
long |
getBytesReceived() |
long |
getLatestBytesReceived() |
int |
read() |
int |
readByte() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int offset,
int length) |
int |
readInt() |
long |
readLong() |
int |
readShort() |
void |
resetLatestBytesReceived() |
static void |
setAllDebug(boolean debug) |
void |
setDebug(boolean debug) |
int |
skipBytes(int n) |
public HostServerConnection.HostInputStream(java.io.InputStream in)
public static void setAllDebug(boolean debug)
public void resetLatestBytesReceived()
public long getLatestBytesReceived()
public long getBytesReceived()
public void setDebug(boolean debug)
public void end()
public int read() throws java.io.IOException
java.io.IOException
public int readByte() throws java.io.IOException
java.io.IOException
public int readShort() throws java.io.IOException
java.io.IOException
public int readInt() throws java.io.IOException
java.io.IOException
public long readLong() throws java.io.IOException
java.io.IOException
public int skipBytes(int n) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public void readFully(byte[] b) throws java.io.IOException
java.io.IOException
public void readFully(byte[] b, int offset, int length) throws java.io.IOException
java.io.IOException