public class ResourceDownloader extends Object
Constructor and Description |
---|
ResourceDownloader(org.apache.hadoop.conf.Configuration conf,
String resourceDirPath) |
Modifier and Type | Method and Description |
---|---|
static URI |
createURI(String path) |
List<URI> |
downloadExternal(URI source,
String subDir,
boolean convertToUnix) |
static boolean |
isFileUri(String value) |
static boolean |
isIvyUri(String value) |
List<URI> |
resolveAndDownload(String source,
boolean convertToUnix) |
public ResourceDownloader(org.apache.hadoop.conf.Configuration conf, String resourceDirPath)
public static URI createURI(String path) throws URISyntaxException
path
- URISyntaxException
public static boolean isIvyUri(String value) throws URISyntaxException
URISyntaxException
public static boolean isFileUri(String value)
public List<URI> resolveAndDownload(String source, boolean convertToUnix) throws URISyntaxException, IOException
URISyntaxException
IOException
public List<URI> downloadExternal(URI source, String subDir, boolean convertToUnix) throws URISyntaxException, IOException
URISyntaxException
IOException
Copyright © 2016 The Apache Software Foundation. All rights reserved.