Class DiskBinFile
java.lang.Object
dxt.scanpath.v2.io.DiskBinFile
- All Implemented Interfaces:
BinFile
-
Constructor Summary
ConstructorsConstructorDescriptionDiskBinFile(File root, File file) Creates a representation of a class file relative to a filesystem root. -
Method Summary
Modifier and TypeMethodDescriptionReturns the class name derived from the file's path relative to the root directory.byte[]Reads the class-file contents from the local filesystem.Returns the class name without package information.
-
Constructor Details
-
DiskBinFile
-
-
Method Details
-
getClassName
Returns the class name derived from the file's path relative to the root directory.- Specified by:
getClassNamein interfaceBinFile- Returns:
- the fully qualified class name
-
getSimpleClassName
Returns the class name without package information.- Specified by:
getSimpleClassNamein interfaceBinFile- Returns:
- the simple class name
-
getContent
Reads the class-file contents from the local filesystem.- Specified by:
getContentin interfaceBinFile- Returns:
- the class-file contents
- Throws:
IOException- if the file cannot be read
-