Interface BinFile
- All Known Implementing Classes:
DiskBinFile, JarBinFile, ZipBinFile
public interface BinFile
Represents a file or archive entry containing the bytecode of a Java class.
- Author:
- indroneel
-
Method Summary
Modifier and TypeMethodDescriptionReturns the fully qualified name of the class whose bytecode is contained in this file.byte[]Reads the binary contents of the class file.Returns the class name without package information.
-
Method Details
-
getClassName
String getClassName()Returns the fully qualified name of the class whose bytecode is contained in this file.- Returns:
- the fully qualified class name
-
getSimpleClassName
String getSimpleClassName()Returns the class name without package information.- Returns:
- the simple class name
-
getContent
Reads the binary contents of the class file.- Returns:
- the class-file contents
- Throws:
IOException- if the contents cannot be read
-