APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.utils

public Class DataInput

extends DataInputStream
Class Inheritance
Imports
java.io.DataInputStream, .IOException, .InputStream

Extends DataInputStream with additional convenience methods.
Author
Nathan Sweet

Field Summary

Modifier and TypeField and Description
private char[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
readInt(boolean optimizePositive)

Reads a 1-5 byte int.

public String

Returns:

May be null.
readString
()

Reads the length and string of UTF8 characters, or null.

private void
readUtf8_slow(int charCount, int charIndex, int b)

Inherited from java.io.DataInputStream:
readreadreadBooleanreadBytereadCharreadDoublereadFloatreadFullyreadFullyreadIntreadLinereadLongreadShortreadUnsignedBytereadUnsignedShortreadUTFreadUTFskipBytes

Field Detail

charsback to summary
private char[] chars

Constructor Detail

DataInputback to summary
public DataInput(InputStream in)

Method Detail

readIntback to summary
public int readInt(boolean optimizePositive) throws IOException

Reads a 1-5 byte int.

readStringback to summary
public String readString() throws IOException

Reads the length and string of UTF8 characters, or null.

Returns:String

May be null.

Annotations
@Null
readUtf8_slowback to summary
private void readUtf8_slow(int charCount, int charIndex, int b) throws IOException