org.apache.commons.classscan.builtin
Class JarResourceFile
java.lang.Object
org.apache.commons.classscan.builtin.JarResourceFile
- All Implemented Interfaces:
- ResourceFile
- Direct Known Subclasses:
- JarClassFile
public class JarResourceFile
- extends Object
- implements ResourceFile
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarResourceFile
public JarResourceFile(JarFile jarFile,
JarEntry jarEntry)
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
- Returns:
- The InputStream to read resource bytes. This stream should be closed when all bytes have been read.
- Throws:
IOException
getFileName
public String getFileName()
- Description copied from interface:
ResourceFile
- Get the relative file name;
- Specified by:
getFileName
in interface ResourceFile
- Returns:
- The resource name relative to the ClassPathElement base
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.