Class SegmentFetcherFactory


  • public class SegmentFetcherFactory
    extends Object
    • Method Detail

      • fetchSegmentToLocal

        public static void fetchSegmentToLocal​(URI uri,
                                               File dest)
                                        throws Exception
        Fetches a segment from URI location to local.
        Throws:
        Exception
      • fetchSegmentToLocal

        public static void fetchSegmentToLocal​(String uri,
                                               File dest)
                                        throws Exception
        Fetches a segment from URI location to local.
        Throws:
        Exception
      • fetchAndDecryptSegmentToLocal

        public static void fetchAndDecryptSegmentToLocal​(String uri,
                                                         File dest,
                                                         String crypterName)
                                                  throws Exception
        Fetches a segment from a URI location to a local file and decrypts it if needed
        Parameters:
        uri - remote segment location
        dest - local file
        Throws:
        Exception