public class QueueReader extends Object
Constructor and Description |
---|
QueueReader(String fileName)
Constructor for QueueReader.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
read(int position,
int length)
get bytes from the queue file at the specified position
|
long |
readBEUInt(int position,
int length)
Read a Big Endian Unsigned Integer from the queue file
|
int |
readBEUShort(int position,
int length)
Read a Big Endian Unsigned Short from the queue file
|
byte[] |
readIP(int position)
Read an IP Address from the queue file
|
long |
readLEUInt(int position,
int length)
Read a Little Endian Unsigned Integer from the queue file
|
int |
readLEUShort(int position,
int length)
Read a Little Endian Unsigned Short from the queue file
|
String |
readString(int position,
int length)
Read a String from the queue file
|
public byte[] read(int position, int length)
position
- position in file to seek tolength
- length in bytes to readpublic long readBEUInt(int position, int length)
position
- position in file to seek tolength
- length in bytes to readpublic long readLEUInt(int position, int length)
position
- position in file to seek tolength
- length in bytes to readpublic int readBEUShort(int position, int length)
position
- position in file to seek tolength
- length in bytes to readpublic int readLEUShort(int position, int length)
position
- position in file to seek tolength
- length in bytes to readpublic byte[] readIP(int position)
position
- position in file to seek topublic String readString(int position, int length)
position
- position in file to seek tolength
- length in bytes to readCopyright © 2011–2017 Mike Thomas. All rights reserved.