@param uri @return List of URIs @throws IOException
(URI uri)
| 67 | * @throws IOException |
| 68 | */ |
| 69 | public URI[] resolve(URI uri) throws IOException { |
| 70 | String scheme = uri.getScheme(); |
| 71 | if (scheme != null) { |
| 72 | scheme = scheme.toLowerCase(); |
| 73 | if (scheme.equals("ivy")) { |
| 74 | DownloadResolver downloadResolver = DownloadResolver.getInstance(); |
| 75 | return downloadResolver.downloadArtifact(uri, pigServer); |
| 76 | } |
| 77 | if (!hasFileSystemImpl(uri)) { |
| 78 | throw new ParserException("Invalid Scheme: " + uri.getScheme()); |
| 79 | } |
| 80 | } |
| 81 | return new URI[] { uri }; |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * @param uri |