|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.croesch.micro_debug.mic1.controlstore.MicroInstructionReader
public final class MicroInstructionReader
Based on the implementation of Ray Ontko.
Is able to read bytes from InputStreams and to construct MicroInstructions with the given values.
| Field Summary | |
|---|---|
static int |
MIC1_MAGIC_NUMBER
the magic number that is needed at the begin of a binary mic1-file |
| Method Summary | |
|---|---|
static MicroInstruction |
read(java.io.InputStream in)
Reads five bytes from the given InputStream and constructs one MicroInstruction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MIC1_MAGIC_NUMBER
| Method Detail |
|---|
@Nullable
public static MicroInstruction read(java.io.InputStream in)
throws java.io.IOException
InputStream and constructs one MicroInstruction. Invoke several
times to read the whole data in the stream.
in - the inputstream to fetch five bytes from
MicroInstruction constructed from the bytes read or null if there are less than five
bytes to read from the inputstream.
java.io.IOException - if something went wrong reading the given InputStream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||