Stores a collection of DependencyData. The format is binary and follows the following format: (Header Tag)(version number: int) (Start Tag)(Main File)[(2ndary Tag)(2ndary File)...][(Output tag)(output file)...][(2ndary Output tag)(output file)...] (Start Tag)(Main File)[(2ndary Tag)(2ndary File)...][(Output tag)(output file)...][(2ndary Output tag)(output file)...] ... All files are written as (size in int)(byte array, using UTF8 encoding).
Constructor and description |
---|
DependencyDataStore
() |
Type | Name and description |
---|---|
void |
addData(List<DependencyData> dataList) |
void |
addData(DependencyData data) |
Collection<DependencyData> |
getData() |
Map<String, DependencyData> |
getMainFileMap() Returns the map of data using the main file as key. |
com.google.common.collect.Multimap<String, DependencyData> |
loadFrom(File file) Loads the dependency data from the given file. |
void |
remove(DependencyData data) |
void |
saveTo(File file) Saves the dependency data to a given file. |
void |
updateAll(List<DependencyData> dataList) |
Returns the map of data using the main file as key.
Loads the dependency data from the given file.
file
- the file to load the data from.Saves the dependency data to a given file.
file
- the file to save the data to.