Package com.pnfsoftware.jeb.util.io
Class LEDataInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.pnfsoftware.jeb.util.io.LEDataInputStream
- All Implemented Interfaces:
Closeable,DataInput,AutoCloseable
Little-endian version of a
DataInputStream.-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intread(byte[] ba) intread(byte[] ba, int off, int len) booleanbytereadByte()charreadChar()doublefloatvoidreadFully(byte[] ba) voidreadFully(byte[] ba, int off, int len) intreadInt()intRead an unsigned LEB128-encoded 32-bit integer.readLine()Deprecated.longreadLong()longRead an unsigned LEB128-encoded 64-bit integer.shortintintreadUTF()intskipBytes(int n) Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
LEDataInputStream
Create a little-endian data input stream.- Parameters:
in- wrapped input stream
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
readBoolean
- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readChar
- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readDouble
- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readFloat
- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readInt
- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLine
Deprecated.Danger: not portable! Uses local system encoding.- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readLong
- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readShort
- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUTF
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
skipBytes
- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
readIntULEB128
Read an unsigned LEB128-encoded 32-bit integer.- Returns:
- decoded value
- Throws:
IOException- if the value cannot be read or is malformed
-
readLongULEB128
Read an unsigned LEB128-encoded 64-bit integer.- Returns:
- decoded value
- Throws:
IOException- if the value cannot be read or is malformed
-