org.apache.commons.classscan.builtin
Class JarClassFile

java.lang.Object
  extended by org.apache.commons.classscan.builtin.JarResourceFile
      extended by org.apache.commons.classscan.builtin.JarClassFile
All Implemented Interfaces:
ClassFile, ResourceFile

public class JarClassFile
extends JarResourceFile
implements ClassFile


Constructor Summary
JarClassFile(JarFile jarFile, JarEntry jarEntry)
           
 
Method Summary
 InputStream getBytes()
          Get the stream of bytes for the resource.
 String getClassName()
          Get the name of the class
 
Methods inherited from class org.apache.commons.classscan.builtin.JarResourceFile
getFileName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.classscan.ResourceFile
getFileName
 

Constructor Detail

JarClassFile

public JarClassFile(JarFile jarFile,
                    JarEntry jarEntry)
Method Detail

getBytes

public InputStream getBytes()
                     throws IOException
Description copied from interface: ResourceFile
Get the stream of bytes for the resource.

Specified by:
getBytes in interface ResourceFile
Overrides:
getBytes in class JarResourceFile
Returns:
The InputStream to read resource bytes. This stream should be closed when all bytes have been read.
Throws:
IOException

getClassName

public String getClassName()
Description copied from interface: ClassFile
Get the name of the class

Specified by:
getClassName in interface ClassFile
Returns:
The canonical class name; or null, if not a valid class


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.