| Constructor and Description |
|---|
NetworkDataInputStream(DataInputStream stream) |
NetworkDataInputStream(InputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] bytes) |
void |
readFully(byte[] bytes,
int offset,
int length) |
int |
readInt() |
String |
readLine()
Deprecated.
|
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
int |
skipBytes(int amount) |
public NetworkDataInputStream(InputStream stream)
public NetworkDataInputStream(DataInputStream stream)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void readFully(@Nonnull byte[] bytes) throws IOException
readFully in interface DataInputIOExceptionpublic void readFully(@Nonnull byte[] bytes, int offset, int length) throws IOException
readFully in interface DataInputIOExceptionpublic int skipBytes(int amount)
throws IOException
skipBytes in interface DataInputIOExceptionpublic boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptionpublic byte readByte()
throws IOException
readByte in interface DataInputIOExceptionpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic short readShort()
throws IOException
readShort in interface DataInputIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOExceptionpublic char readChar()
throws IOException
readChar in interface DataInputIOExceptionpublic int readInt()
throws IOException
readInt in interface DataInputIOExceptionpublic long readLong()
throws IOException
readLong in interface DataInputIOExceptionpublic float readFloat()
throws IOException
readFloat in interface DataInputIOExceptionpublic double readDouble()
throws IOException
readDouble in interface DataInputIOException@Deprecated public String readLine() throws IOException
readLine in interface DataInputIOException@Nonnull public String readUTF() throws IOException
readUTF in interface DataInputIOExceptionCopyright © 2019. All rights reserved.