Package jmri.jmrix.loconet.sdf
Class SdfBuffer
- java.lang.Object
-
- jmri.jmrix.loconet.sdf.SdfBuffer
-
public class SdfBuffer extends java.lang.Object
Provide tools for reading, writing and accessing Digitrax SPJ files.Maintains several representations:
- A byte array of the SDF contents after assembly. This is not complete, as it can't contain information like contents, labels, etc. Nor can it distinguish certain options with identical values (e.g. several constants that boil down to a zero value)
- An array of nested SdfMacro objects. These contain more detailed representations of the macro source, in the limit containing the entire thing.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAtIndex()intgetAtIndexAndInc()byte[]getByteArray()java.util.List<SdfMacro>getMacroList()voidloadByteArray()Reload the byte buffer from the contained instruction objects(package private) voidloadMacroList()booleanmoreData()voidresetIndex()voidsetAtIndex(int data)voidsetAtIndexAndInc(int data)java.lang.StringtoString()
-
-
-
Method Detail
-
resetIndex
public void resetIndex()
-
getAtIndex
public int getAtIndex()
-
getAtIndexAndInc
public int getAtIndexAndInc()
-
moreData
public boolean moreData()
-
setAtIndex
public void setAtIndex(int data)
-
setAtIndexAndInc
public void setAtIndexAndInc(int data)
-
loadByteArray
public void loadByteArray()
Reload the byte buffer from the contained instruction objects
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getByteArray
public byte[] getByteArray()
-
getMacroList
public java.util.List<SdfMacro> getMacroList()
-
loadMacroList
void loadMacroList()
-
-