org.codehaus.enunciate.main
Class FileClasspathResource

java.lang.Object
  extended by org.codehaus.enunciate.main.FileClasspathResource
All Implemented Interfaces:
ClasspathResource

public class FileClasspathResource
extends java.lang.Object
implements ClasspathResource

A classpath entry that is a file on the filesystem.

Author:
Ryan Heaton

Constructor Summary
FileClasspathResource(java.io.File file, java.io.File pathRoot)
           
 
Method Summary
 java.lang.String getPath()
          The path (slash-separated directories) of the classpath entry.
 java.io.InputStream read()
          Read the classpath entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileClasspathResource

public FileClasspathResource(java.io.File file,
                             java.io.File pathRoot)
Method Detail

getPath

public java.lang.String getPath()
Description copied from interface: ClasspathResource
The path (slash-separated directories) of the classpath entry.

Specified by:
getPath in interface ClasspathResource
Returns:
The path of the classpath entry.

read

public java.io.InputStream read()
                         throws java.io.IOException
Description copied from interface: ClasspathResource
Read the classpath entry.

Specified by:
read in interface ClasspathResource
Returns:
The stream to the classpath entry.
Throws:
java.io.IOException