Package org.cdlib.mrt.cloud
Class VersionMapUtil
java.lang.Object
org.cdlib.mrt.cloud.VersionMapUtil
- Author:
- dloy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VersionMap
Get version map from manifext URLstatic File
getOutputFile
(File outDir, String fileID) static List<FileComponent>
getVersion
(VersionMap map, int versionID) Get component information from version mapstatic int
getVersionFiles
(VersionMap map, int versionID, String baseURL, File outputDir) Fill in the outputDir file directory with the content from this version
-
Field Details
-
DEBUG
public static final boolean DEBUG- See Also:
-
-
Constructor Details
-
VersionMapUtil
public VersionMapUtil()
-
-
Method Details
-
getMap
Get version map from manifext URL- Parameters:
urlS
- string form manifest URL- Returns:
- version manifest map
- Throws:
TException
- process exception
-
getVersion
Get component information from version map- Parameters:
map
- version manifest mapversionID
- specific version content to be extracted- Returns:
- version components
- Throws:
TException
- process exception
-
getVersionFiles
public static int getVersionFiles(VersionMap map, int versionID, String baseURL, File outputDir) throws TException Fill in the outputDir file directory with the content from this version- Parameters:
map
- version mapversionID
- version identifier of content to be extractedbaseURL
- the base URL pre-pended to the file content for extractionoutputDir
- directory file for extracted content- Returns:
- written count
- Throws:
TException
- processing exception
-
getOutputFile
- Throws:
TException
-