public class ByteArrayReader extends Object
| Constructor and Description |
|---|
ByteArrayReader() |
ByteArrayReader(byte[] data) |
ByteArrayReader(File io,
int size) |
ByteArrayReader(int size) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData() |
byte |
readByte() |
void |
readFully(byte[] buf) |
int |
readInt() |
long |
readLong() |
short |
readShort() |
String |
readString(int size,
String encoding) |
String |
readString(String encoding) |
short |
readUnsignedByte() |
long |
readUnsignedInt() |
int |
readUnsignedShort() |
void |
reset(byte[] data,
int index) |
void |
reset(File io,
int size) |
void |
skipBytes(long n) |
public ByteArrayReader()
public ByteArrayReader(File io, int size) throws IOException
IOExceptionpublic ByteArrayReader(byte[] data)
public ByteArrayReader(int size)
public byte[] getData()
public void reset(byte[] data,
int index)
public void reset(File io, int size) throws IOException
IOExceptionpublic void skipBytes(long n)
public short readUnsignedByte()
public int readUnsignedShort()
public long readUnsignedInt()
public byte readByte()
public short readShort()
public int readInt()
public long readLong()
public void readFully(byte[] buf)
Copyright © 2014. All rights reserved.