jmri.jmrix.loconet.sdf
Class SdfBuffer
java.lang.Object
jmri.jmrix.loconet.sdf.SdfBuffer
public class SdfBuffer
- extends 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.
- Author:
- Bob Jacobsen Copyright (C) 2007, 2008
|
Field Summary |
protected int |
index
|
index
protected int index
SdfBuffer
public SdfBuffer(byte[] buffer)
SdfBuffer
public SdfBuffer(String name)
throws IOException
- Throws:
IOException
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 String toString()
- Overrides:
toString in class Object
getByteArray
public byte[] getByteArray()
getMacroList
public List getMacroList()
Copyright © 1997 - 2008 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: