|
||||||||||||
| 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 ByteProcessorinitialize in class SimpleByteProcessor
public void processByte(int start,
int end,
int byteValue)
processByte in interface ByteProcessorprocessByte in class SimpleByteProcessorstart - The offset of the byte.end - The end offset of the byte.byteValue - The byte value.public int undoLastByte()
undoLastByte in interface ByteProcessorundoLastByte in class SimpleByteProcessorpublic byte[] getBytes()
getBytes in interface ByteProcessorgetBytes in class SimpleByteProcessorpublic int numBytesProcessed()
Returns 0, unless the number of bytes read is greater than that required for system variables.
numBytesProcessed in interface ByteProcessornumBytesProcessed in class SimpleByteProcessorpublic java.lang.String checkConsistent()
checkConsistent in interface ByteProcessorcheckConsistent in class SimpleByteProcessor
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||