public class ByteReader extends InputStream
| Constructor and Description |
|---|
ByteReader(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
ByteReader |
changeEndiannes() |
int |
getPosition() |
int |
read() |
long |
read2bytes() |
long |
read3bytes() |
long |
read4bytes() |
long |
read5bytes() |
long |
read6bytes() |
long |
read7bytes() |
long |
read8bytes() |
String |
readString(int sz)
reads 0-terminated string in default code page
|
String |
readUnicodeString()
reads unicode string that has 2 bytes at start indicates length of string
|
String |
readUnicodeString(int sz)
reads 0-terminated string in unicode
|
boolean |
seek(int n) |
available, close, mark, markSupported, read, read, reset, skippublic ByteReader(InputStream in)
public int getPosition()
public ByteReader changeEndiannes()
public boolean seek(int n)
throws IOException
IOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic long read2bytes()
throws IOException
IOExceptionpublic long read3bytes()
throws IOException
IOExceptionpublic long read4bytes()
throws IOException
IOExceptionpublic long read5bytes()
throws IOException
IOExceptionpublic long read6bytes()
throws IOException
IOExceptionpublic long read7bytes()
throws IOException
IOExceptionpublic long read8bytes()
throws IOException
IOExceptionpublic String readString(int sz) throws IOException
sz - - maximum size in bytesIOExceptionpublic String readUnicodeString(int sz) throws IOException
sz - - maximum size in charctersIOExceptionpublic String readUnicodeString() throws IOException
IOExceptionCopyright © 2016–2018 Frederik Kammel. All rights reserved.