public class RuntimeConsumer extends java.lang.Object implements InstructionConsumer
| Constructor and Description |
|---|
RuntimeConsumer(RtflRuntime runtime) |
| 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 RuntimeConsumer(RtflRuntime runtime)
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