public class CacheInstructionConsumer extends java.lang.Object implements InstructionConsumer
| Modifier and Type | Field and Description |
|---|---|
java.util.ArrayList<RtflInstruction> |
cache |
| Constructor and Description |
|---|
CacheInstructionConsumer() |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(RtflInstruction instruction)
Takes in instruction
|
void |
finish()
Tells this consumer that it is finished receiving instructions
|
public java.util.ArrayList<RtflInstruction> cache
public void consume(RtflInstruction instruction) throws java.io.IOException
InstructionConsumerconsume in interface InstructionConsumerinstruction - The instruction to take injava.io.IOException - If dealing with the instruction failspublic void finish()
throws RuntimeException
InstructionConsumerfinish in interface InstructionConsumerRuntimeException - If dealing with the instructions taken in fails