jmri.jmrix.loconet.sdf
Class SdfBuffer

java.lang.Object
  extended by jmri.jmrix.loconet.sdf.SdfBuffer

public class SdfBuffer
extends Object

Provide tools for reading, writing and accessing Digitrax SPJ files.

Maintains several representations:

Author:
Bob Jacobsen Copyright (C) 2007, 2008

Field Summary
protected  int index
           
 
Constructor Summary
SdfBuffer(byte[] buffer)
           
SdfBuffer(String name)
           
 
Method Summary
 int getAtIndex()
           
 int getAtIndexAndInc()
           
 byte[] getByteArray()
           
 List getMacroList()
           
 void loadByteArray()
          Reload the byte buffer from the contained instruction objects
 boolean moreData()
           
 void resetIndex()
           
 void setAtIndex(int data)
           
 void setAtIndexAndInc(int data)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

index

protected int index
Constructor Detail

SdfBuffer

public SdfBuffer(byte[] buffer)

SdfBuffer

public SdfBuffer(String name)
          throws IOException
Throws:
IOException
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 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: SourceForge_Logo