|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RoverCodec
A coder/decoder implementation for a specific rover bytecode format.
Copyright 2008 Partner Software, Inc.
| Method Summary | |
|---|---|
void |
execute(DynamicByteArray bytecode,
RoverMachineRegister register,
RoverMachineActor actor)
Execute the given bytecode with a RoverMachine, storing data in the given register and sending events to the given actor. |
RoverBlock |
readBlock(DynamicByteArray bytes)
Read a block from the given byte array. |
void |
writeBlock(RoverBlock block,
DynamicByteArray bytes)
Write a block to the given byte array. |
| Method Detail |
|---|
RoverBlock readBlock(DynamicByteArray bytes)
throws RoverFormatException
bytes - encoded rover bytes
RoverFormatException
void writeBlock(RoverBlock block,
DynamicByteArray bytes)
throws RoverFormatException
bytes - encoded rover bytes
RoverFormatException
void execute(DynamicByteArray bytecode,
RoverMachineRegister register,
RoverMachineActor actor)
throws java.io.IOException
This method should be as fast as possible. Avoid allocations, external calls, or anything else that will compromise performance. Comment out log statements rather than testing for log.isDebugEnabled(). Etc.
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||