Package jmri.jmrit.display.layoutEditor
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrit.XmlFile
XmlFile.Validate
-
-
Field Summary
-
Fields inherited from class jmri.jmrit.XmlFile
dtdLocation, xsltLocation
-
-
Constructor Summary
Constructors Constructor Description BlockValueFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
readBlockValues()
Reads Block values from a file in the user's preferences directory.void
writeBlockValues()
-
Methods inherited from class jmri.jmrit.XmlFile
addDefaultInfo, backupFileName, checkFile, createFileNameWithDate, dumpElement, findFile, getBuilder, getDefaultDtdLocation, getDefaultValidate, getDtdLocation, getProcessingInstructionHRef, getProcessingInstructionType, getRoot, getValidate, makeBackupFile, makeBackupFile, newDocument, newDocument, revertBackupFile, rootFromFile, rootFromInputStream, rootFromName, rootFromURL, setDefaultDtdLocation, setDefaultValidate, setDtdLocation, setValidate, userFileChooser, userFileChooser, writeXML, xmlDir
-
-
-
-
Constructor Detail
-
BlockValueFile
public BlockValueFile()
-
-
Method Detail
-
readBlockValues
public void readBlockValues() throws org.jdom2.JDOMException, java.io.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 failjava.io.IOException
- if an I/O error occurs while reading a file
-
writeBlockValues
public void writeBlockValues() throws java.io.IOException
- Throws:
java.io.IOException
-
-