public class DataReader extends Object implements IDataReader
| Constructor and Description |
|---|
DataReader(byte[] buffer) |
DataReader(byte[] buffer,
int offset,
int length) |
DataReader(InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getPosition() |
boolean |
hasMore() |
void |
jumpTo(int location) |
void |
read(byte[] b) |
byte[] |
readAll() |
int |
readByte() |
int |
readDoubleWord() |
long |
readLong() |
String |
readUnicode() |
String |
readUnicode(int size) |
String |
readUtf() |
String |
readUtf(int size) |
int |
readWord() |
void |
skipBytes(int numBytes) |
public DataReader(byte[] buffer)
public DataReader(byte[] buffer,
int offset,
int length)
public DataReader(InputStream is)
public int readByte()
throws IOException
readByte in interface IDataReaderIOExceptionpublic int readWord()
throws IOException
readWord in interface IDataReaderIOExceptionpublic long readLong()
throws IOException
readLong in interface IDataReaderIOExceptionpublic int readDoubleWord()
throws IOException
readDoubleWord in interface IDataReaderIOExceptionpublic int getPosition()
getPosition in interface IDataReaderpublic boolean hasMore()
throws IOException
hasMore in interface IDataReaderIOExceptionpublic void jumpTo(int location)
throws IOException
jumpTo in interface IDataReaderIOExceptionpublic void skipBytes(int numBytes)
throws IOException
skipBytes in interface IDataReaderIOExceptionpublic void close()
throws IOException
close in interface IDataReaderIOExceptionpublic void read(byte[] b)
throws IOException
read in interface IDataReaderIOExceptionpublic String readUtf(int size) throws IOException
readUtf in interface IDataReaderIOExceptionpublic String readUtf() throws IOException
readUtf in interface IDataReaderIOExceptionpublic String readUnicode() throws IOException
readUnicode in interface IDataReaderIOExceptionpublic String readUnicode(int size) throws IOException
readUnicode in interface IDataReaderIOExceptionpublic byte[] readAll()
throws IOException
readAll in interface IDataReaderIOExceptionCopyright © 2018. All Rights Reserved.