net.sourceforge.jane
Class ArtifactPath
java.lang.Object
|
+--net.sourceforge.jane.ArtifactPath
- Direct Known Subclasses:
- CompositeArtifactPath, DirectoryArtifactPath, JarArtifactPath
- public abstract class ArtifactPath
- extends java.lang.Object
A path for locating artifacts.
Field Summary |
protected java.lang.String |
path
|
Constructor Summary |
ArtifactPath(java.lang.String aPath)
Create a new ArtifactPath . |
Method Summary |
abstract java.io.InputStream |
findArtifact(java.lang.String name)
Find the specified artifact. |
abstract java.lang.String |
getPathToArtifact(java.lang.String name)
Returns the path to the given artifact. |
static ArtifactPath |
resolvePath(java.lang.String path)
Resolve the given string path to the appropriate path object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
path
protected java.lang.String path
ArtifactPath
public ArtifactPath(java.lang.String aPath)
- Create a new
ArtifactPath
.
getPathToArtifact
public abstract java.lang.String getPathToArtifact(java.lang.String name)
- Returns the path to the given artifact.
findArtifact
public abstract java.io.InputStream findArtifact(java.lang.String name)
throws java.io.IOException
- Find the specified artifact.
resolvePath
public static ArtifactPath resolvePath(java.lang.String path)
throws InvalidPathException
- Resolve the given string path to the appropriate path object.
Copyright © 2002-2002 SourceForge. All Rights Reserved.