org.codehaus.enunciate.main
Class JarClasspathResource

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

public class JarClasspathResource
extends java.lang.Object
implements ClasspathResource

A classpath entry that is packaged up in a jar.

Author:
Ryan Heaton

Constructor Summary
JarClasspathResource(java.util.jar.JarFile jarFile, java.util.jar.JarEntry entry)
           
 
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

JarClasspathResource

public JarClasspathResource(java.util.jar.JarFile jarFile,
                            java.util.jar.JarEntry entry)
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