public class Stream5250 extends Object
| Modifier and Type | Field and Description |
|---|---|
byte[] |
buffer |
int |
dataStart |
int |
opCode |
static int |
OPCODE_OFFSET |
int |
pos |
int |
streamSize |
| Constructor and Description |
|---|
Stream5250() |
Stream5250(byte[] abyte0) |
| Modifier and Type | Method and Description |
|---|---|
byte |
getByteOffset(int off) |
int |
getCurrentPos()
Returns where we are in the buffer
|
byte |
getNextByte() |
int |
getOpCode() |
byte[] |
getSegment()
This routine will retrieve a segment based on the first two bytes being
the length of the segment.
|
void |
getSegment(byte[] segment,
int length,
boolean adjustPos)
This routine will retrieve a byte array based on the first two bytes being
the length of the segment.
|
boolean |
hasNext()
Determines if any more bytes are available in the buffer to be processed.
|
void |
initialize(byte[] abyte0)
This method takes a byte array and initializes the object information
to be used.
|
void |
setPrevByte() |
boolean |
size() |
public static final int OPCODE_OFFSET
public int streamSize
public int opCode
public int dataStart
public int pos
public byte[] buffer
public void initialize(byte[] abyte0)
abyte0 - bytespublic final int getOpCode()
public final int getCurrentPos()
public final boolean size()
public final boolean hasNext()
public final byte[] getSegment()
throws Exception
Exception - exceptionpublic final void getSegment(byte[] segment,
int length,
boolean adjustPos)
throws Exception
segment - - byte arraylength - - length of segment to returnadjustPos - - adjust the position of the buffer to the end of the seg
mentException - exceptionCopyright © 2018. All rights reserved.