Class VersionMapUtil

java.lang.Object
org.cdlib.mrt.cloud.VersionMapUtil

public class VersionMapUtil extends Object
Author:
dloy
  • Field Details

  • Constructor Details

    • VersionMapUtil

      public VersionMapUtil()
  • Method Details

    • getMap

      public static VersionMap getMap(String urlS) throws TException
      Get version map from manifext URL
      Parameters:
      urlS - string form manifest URL
      Returns:
      version manifest map
      Throws:
      TException - process exception
    • getVersion

      public static List<FileComponent> getVersion(VersionMap map, int versionID) throws TException
      Get component information from version map
      Parameters:
      map - version manifest map
      versionID - 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 map
      versionID - version identifier of content to be extracted
      baseURL - the base URL pre-pended to the file content for extraction
      outputDir - directory file for extracted content
      Returns:
      written count
      Throws:
      TException - processing exception
    • getOutputFile

      public static File getOutputFile(File outDir, String fileID) throws TException
      Throws:
      TException