java.lang.Object
java.io.InputStream
io.ByteReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
int
read()
int
read
(byte[] b, int off, int len) long
long
long
long
long
long
long
readString
(int sz) reads 0-terminated string in default code pagereads unicode string that has 2 bytes at start indicates length of stringreadUnicodeString
(int sz) reads 0-terminated string in unicodeboolean
seek
(int n) Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
le
private boolean le -
stream
-
pos
private int pos
-
-
Constructor Details
-
ByteReader
-
-
Method Details
-
getPosition
public int getPosition() -
changeEndiannes
-
seek
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read2bytes
- Throws:
IOException
-
read3bytes
- Throws:
IOException
-
read4bytes
- Throws:
IOException
-
read5bytes
- Throws:
IOException
-
read6bytes
- Throws:
IOException
-
read7bytes
- Throws:
IOException
-
read8bytes
- Throws:
IOException
-
readString
reads 0-terminated string in default code page- Parameters:
sz
- - maximum size in bytes- Throws:
IOException
-
readUnicodeString
reads 0-terminated string in unicode- Parameters:
sz
- - maximum size in charcters- Throws:
IOException
-
readUnicodeString
reads unicode string that has 2 bytes at start indicates length of string- Throws:
IOException
-