|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides operations to process bytes.
Method Summary | |
---|---|
java.lang.String |
checkConsistent()
Checks whether the loaded bytes are consistent. |
int |
getByteIndex(int number)
Get the index in the sample for the given byte number. |
int |
getByteNumber(int index)
Get the byte number at the given position in the sample. |
void |
getByteNumber(int index,
int[] pos)
Get the byte number at the given position in the sample. |
byte[] |
getBytes()
Get all the bytes. |
int |
getByteValue(int byteNumber)
Get the byte value at the given byte number. |
void |
initialize()
Initialize this object ready for processing a sample. |
int |
numBytesProcessed()
Returns the number of bytes processed. |
int |
numExpectedBytes()
Returns the number of bytes expected to be processed. |
void |
processByte(int start,
int end,
int byteValue)
Process the current byte. |
int |
undoLastByte()
Undo the last byte that was extracted. |
void |
write(java.io.OutputStream output)
Write the bytes that have been extracted from the sample to the output stream. |
Method Detail |
public void initialize()
public void processByte(int start, int end, int byteValue)
start
- The start index of the byte in the sample.end
- The end index of the byte in the sample.byteValue
- The byte value.public int undoLastByte()
public void write(java.io.OutputStream output) throws java.io.IOException
output
- The output stream.
java.io.IOException
- An error occurred writing to the stream.public int numBytesProcessed()
public int numExpectedBytes()
public int getByteNumber(int index)
index
- The position in the sample.
public void getByteNumber(int index, int[] pos)
index
- The index.pos
- An array which will contain the byte number and offset from the start of the byte.public int getByteIndex(int number)
number
- The byte number.
public int getByteValue(int byteNumber)
byteNumber
- The index.
public byte[] getBytes()
public java.lang.String checkConsistent()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |