net.sourceforge.jane
Class SourcePathArtifactLocator

java.lang.Object
  |
  +--net.sourceforge.jane.SourcePathArtifactLocator
All Implemented Interfaces:
ArtifactLocator

public class SourcePathArtifactLocator
extends java.lang.Object
implements ArtifactLocator

Locates '.java' files from a source path.

Author:
Calvin Yu

Field Summary
static java.lang.String TYPE
           
 
Constructor Summary
SourcePathArtifactLocator()
          Create a new SourcePathArtifactLocator.
 
Method Summary
 void appendPath(java.lang.String aPath)
          Append a path.
 boolean canFindClass(java.lang.String className)
          Returns true if this locator can find the given class.
 java.io.InputStream getInputStream(java.lang.String className)
          Returns an input stream to the given path.
 java.lang.String getPath(java.lang.String className)
          Returns the path to the source of the given class name.
 java.lang.String getType()
          Returns the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE
Constructor Detail

SourcePathArtifactLocator

public SourcePathArtifactLocator()
Create a new SourcePathArtifactLocator.
Method Detail

appendPath

public void appendPath(java.lang.String aPath)
                throws InvalidPathException
Append a path.

getType

public java.lang.String getType()
Returns the type.
Specified by:
getType in interface ArtifactLocator

getInputStream

public java.io.InputStream getInputStream(java.lang.String className)
                                   throws java.io.IOException
Returns an input stream to the given path.

getPath

public java.lang.String getPath(java.lang.String className)
Returns the path to the source of the given class name.

canFindClass

public boolean canFindClass(java.lang.String className)
Returns true if this locator can find the given class.
Specified by:
canFindClass in interface ArtifactLocator


Copyright © 2002-2002 SourceForge. All Rights Reserved.