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, skipBytes
available, close, mark, markSupported, read, reset, skip
public DataInput(InputStream in)
public int readInt(boolean optimizePositive) throws IOException
IOException
public String readString() throws IOException
IOException
Copyright © 2014. All rights reserved.