public class ByteArrayDataReader extends Object implements IDataReader
| Constructor and Description |
|---|
ByteArrayDataReader(byte[] data) |
ByteArrayDataReader(byte[] data,
int offset,
int length) |
| 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 ByteArrayDataReader(byte[] data)
public ByteArrayDataReader(byte[] data,
int offset,
int length)
public void close()
throws IOException
close 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 read(byte[] b)
throws IOException
read in interface IDataReaderIOExceptionpublic int readByte()
throws IOException
readByte in interface IDataReaderIOExceptionpublic long readLong()
throws IOException
readLong in interface IDataReaderIOExceptionpublic int readDoubleWord()
throws IOException
readDoubleWord in interface IDataReaderIOExceptionpublic String readUtf(int size) throws IOException
readUtf in interface IDataReaderIOExceptionpublic String readUtf() throws IOException
readUtf in interface IDataReaderIOExceptionpublic int readWord()
throws IOException
readWord in interface IDataReaderIOExceptionpublic void skipBytes(int numBytes)
throws IOException
skipBytes 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.