Class BlockValueFile

java.lang.Object
jmri.jmrit.XmlFile
jmri.jmrit.display.layoutEditor.BlockValueFile

public class BlockValueFile extends XmlFile
Handle saving/restoring block value information to XML files. This class manipulates files conforming to the block_value DTD.
  • Constructor Details

  • Method Details

    • readBlockValues

      public void readBlockValues() throws org.jdom2.JDOMException, IOException
      Reads Block values from a file in the user's preferences directory. If the file containing block values does not exist this routine returns quietly. If a Block named in the file does not exist currently, that entry is quietly ignored.
      Throws:
      org.jdom2.JDOMException - on rootFromName if all methods fail
      IOException - if an I/O error occurs while reading a file
    • writeBlockValues

      public void writeBlockValues() throws IOException
      Throws:
      IOException