Package util.io
Class VariableBackup
java.lang.Object
util.io.VariableBackup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThis reads the lines of text in a file into aMap.static voidreadFileLinesToMap(Map<String, Variable> map, File fileToRead) This reads the lines of text in a file into aMap.static voidwriteMapItemsToFileLineByLine(Map<String, Variable> map, File file) This writes items on a queue to a file.
-
Constructor Details
-
VariableBackup
public VariableBackup()
-
-
Method Details
-
writeMapItemsToFileLineByLine
This writes items on a queue to a file. Individual items on the queue ocuupy distinct lines in the file.- Parameters:
map- The map of itemsfile- The File
-
read
This reads the lines of text in a file into aMap. Such that individual file lines become individual indexes on theMap.- Parameters:
map- AMapfile- The file
-
readFileLinesToMap
This reads the lines of text in a file into aMap. Such that individual file lines become individual indexes on theMap.- Parameters:
map- AMapfileToRead- The file
-