public class DataInput extends DataInputStream
DataInputStream with additional convenience methods.| Constructor and Description |
|---|
DataInput(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
int |
readInt(boolean optimizePositive)
Reads a 1-5 byte int.
|
String |
readString()
Reads the length and string of UTF8 characters, or null.
|
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytesavailable, close, mark, markSupported, read, reset, skippublic DataInput(InputStream in)
public int readInt(boolean optimizePositive)
throws IOException
IOException@Null public String readString() throws IOException
IOExceptionCopyright © 2021. All rights reserved.