Package util.io
Class VariableBackup
java.lang.Object
util.io.VariableBackup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
This reads the lines of text in a file into aMap
.static void
readFileLinesToMap
(Map<String, Variable> map, File fileToRead) This reads the lines of text in a file into aMap
.static void
writeMapItemsToFileLineByLine
(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
- AMap
file
- 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
- AMap
fileToRead
- The file
-