Package gaiasky.util.datadesc
Class DataDescriptorUtils
java.lang.Object
gaiasky.util.datadesc.DataDescriptorUtils
-
Method Summary
Modifier and TypeMethodDescriptionbuildLocalDatasets
(DataDescriptor server) Constructs a list of local catalogs found in the current data location and combines them with the server data.buildServerDatasets
(com.badlogic.gdx.files.FileHandle fh) Constructs a data descriptor from a server JSON file.int
getTypeWeight
(String type) static DataDescriptorUtils
instance()
-
Method Details
-
instance
-
getTypeWeight
-
buildServerDatasets
Constructs a data descriptor from a server JSON file. If the file is null andinvalid @link
{@link this#fh
- Parameters:
fh
- The pointer to the server JSON file.- Returns:
- An instance of
DataDescriptor
.
-
buildLocalDatasets
Constructs a list of local catalogs found in the current data location and combines them with the server data. Local catalogs are JSON files in the data directory that start with either 'catalog-' or 'dataset-'.- Parameters:
server
- The server data descriptor, for combining with the local catalogs.- Returns:
- An instance of
DataDescriptor
.
-