Package jmri.jmrit.display.layoutEditor
Class BlockValueFile
java.lang.Object
jmri.jmrit.XmlFile
jmri.jmrit.display.layoutEditor.BlockValueFile
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidReads Block values from a file in the user's preferences directory.voidMethods 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 Details
-
BlockValueFile
public BlockValueFile()
-
-
Method Details
-
readBlockValues
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 failIOException- if an I/O error occurs while reading a file
-
writeBlockValues
- Throws:
IOException
-