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.IOExceptionpublic int readByte()
throws java.io.IOException
java.io.IOExceptionpublic int readShort()
throws java.io.IOException
java.io.IOExceptionpublic int readInt()
throws java.io.IOException
java.io.IOExceptionpublic long readLong()
throws java.io.IOException
java.io.IOExceptionpublic int skipBytes(int n)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic void readFully(byte[] b)
throws java.io.IOException
java.io.IOExceptionpublic void readFully(byte[] b,
int offset,
int length)
throws java.io.IOException
java.io.IOException