gov.nasa.pds.tools.label
Class ManualPathResolver

java.lang.Object
  extended by gov.nasa.pds.tools.label.ManualPathResolver
All Implemented Interfaces:
PointerResolver

public class ManualPathResolver
extends Object
implements PointerResolver

This is a utility class to resolve URLs for pointers.

Version:
$Revision: 6473 $
Author:
pramirez, jagander

Constructor Summary
ManualPathResolver()
           
 
Method Summary
 File getBaseFile()
           
 String getBaseString()
           
 URI getBaseURI()
           
static URI getBaseURI(URI uri)
           
 Map<Numeric,File> resolveFileMap(PointerStatement pointer)
           
 List<File> resolveFiles(PointerStatement pointer)
           
 Map<Numeric,URI> resolveURIMap(PointerStatement pointer)
           
 List<URI> resolveURIs(PointerStatement pointer)
           
 void setBaseURI(URI baseURI)
           
 void setIncludePaths(List<URL> paths)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManualPathResolver

public ManualPathResolver()
Method Detail

setIncludePaths

public void setIncludePaths(List<URL> paths)

resolveURIs

public List<URI> resolveURIs(PointerStatement pointer)
                      throws IOException
Specified by:
resolveURIs in interface PointerResolver
Throws:
IOException

resolveURIMap

public Map<Numeric,URI> resolveURIMap(PointerStatement pointer)
                               throws IOException
Specified by:
resolveURIMap in interface PointerResolver
Throws:
IOException

getBaseFile

public File getBaseFile()
Specified by:
getBaseFile in interface PointerResolver

getBaseURI

public URI getBaseURI()
Specified by:
getBaseURI in interface PointerResolver

getBaseString

public String getBaseString()
Specified by:
getBaseString in interface PointerResolver

setBaseURI

public void setBaseURI(URI baseURI)

getBaseURI

public static URI getBaseURI(URI uri)

resolveFileMap

public Map<Numeric,File> resolveFileMap(PointerStatement pointer)
Specified by:
resolveFileMap in interface PointerResolver

resolveFiles

public List<File> resolveFiles(PointerStatement pointer)
Specified by:
resolveFiles in interface PointerResolver


Copyright © 2005-2011 Planetary Data System. All Rights Reserved.