public class ZipInputStreamCodeBaseEntry extends AbstractScannableCodeBaseEntry
Constructor and Description |
---|
ZipInputStreamCodeBaseEntry(ZipInputStreamCodeBase codeBase,
java.util.zip.ZipEntry zipEntry,
byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
byte[] |
getBytes() |
ClassDescriptor |
getClassDescriptor()
Return the ClassDescriptor of the class resource accessed by this
codebase entry.
|
AbstractScannableCodeBase |
getCodeBase()
Get the codebase this codebase entry belongs to.
|
int |
getNumBytes()
Get the number of bytes in the resource.
|
java.lang.String |
getRealResourceName() |
int |
hashCode() |
java.io.InputStream |
openResource()
Open an input stream reading from the resource.
|
java.lang.String |
toString() |
getResourceName, overrideResourceName
public ZipInputStreamCodeBaseEntry(ZipInputStreamCodeBase codeBase, java.util.zip.ZipEntry zipEntry, byte[] bytes)
public int getNumBytes()
ICodeBaseEntry
public java.io.InputStream openResource() throws java.io.IOException
ICodeBaseEntry
java.io.IOException
- if an error occurs reading from the resourcepublic byte[] getBytes()
public AbstractScannableCodeBase getCodeBase()
ICodeBaseEntry
getCodeBase
in interface ICodeBaseEntry
getCodeBase
in class AbstractScannableCodeBaseEntry
public java.lang.String getRealResourceName()
getRealResourceName
in class AbstractScannableCodeBaseEntry
public ClassDescriptor getClassDescriptor()
ICodeBaseEntry
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.