|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttapeutils.impl.SimpleByteProcessor
tapeutils.impl.zx81.ZX81BASICByteProcessor
This class provides a processor of extracted bytes that is specific to a ZX81 BASIC program.
It expects the bytes to start with the program name, terminated by a character with the high bit set. This is then followed by a dump of memory from thesystem variables to the end of the program.
Field Summary |
---|
Fields inherited from class tapeutils.impl.SimpleByteProcessor |
---|
mByteEndMap, mBytes, mNumExpectedBytes, mSampleAnalyzer |
Constructor Summary | |
---|---|
ZX81BASICByteProcessor(ZX81SampleAnalyzer analyzer)
Construct the byte processor. |
Method Summary | |
---|---|
java.lang.String |
checkConsistent()
Checks whether the loaded bytes are consistent. |
byte[] |
getBytes()
Get the program bytes. |
void |
initialize()
Initialize this object ready for processing a sample. |
int |
numBytesProcessed()
Returns the number of bytes processed. |
void |
processByte(int start,
int end,
int byteValue)
Process the current byte. |
int |
undoLastByte()
Undo the last byte that was extracted.. |
Methods inherited from class tapeutils.impl.SimpleByteProcessor |
---|
getByteIndex, getByteNumber, getByteNumber, getByteValue, numExpectedBytes, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ZX81BASICByteProcessor(ZX81SampleAnalyzer analyzer)
analyzer
- The sample analyzer.Method Detail |
public void initialize()
initialize
in interface ByteProcessor
initialize
in class SimpleByteProcessor
public void processByte(int start, int end, int byteValue)
processByte
in interface ByteProcessor
processByte
in class SimpleByteProcessor
start
- The offset of the byte.end
- The end offset of the byte.byteValue
- The byte value.public int undoLastByte()
undoLastByte
in interface ByteProcessor
undoLastByte
in class SimpleByteProcessor
public byte[] getBytes()
getBytes
in interface ByteProcessor
getBytes
in class SimpleByteProcessor
public int numBytesProcessed()
Returns 0, unless the number of bytes read is greater than that required for system variables.
numBytesProcessed
in interface ByteProcessor
numBytesProcessed
in class SimpleByteProcessor
public java.lang.String checkConsistent()
checkConsistent
in interface ByteProcessor
checkConsistent
in class SimpleByteProcessor
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |