public abstract class AbstractScannedItem extends Object implements ScannedItem
| Constructor and Description |
|---|
AbstractScannedItem(Scanner scanner,
ScannedItem marker) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName() |
byte[] |
getContent() |
String |
getExtension() |
ScannedItem |
getMarker() |
Scanner |
getScanner() |
Class<?> |
loadAsClass() |
Properties |
loadAsProperties() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAbsolutePath, getInputStream, getName, getRelativePath, getSizepublic AbstractScannedItem(Scanner scanner, ScannedItem marker)
public ScannedItem getMarker()
getMarker in interface ScannedItempublic Scanner getScanner()
getScanner in interface ScannedItempublic String getExtension()
getExtension in interface ScannedItempublic String getClassName()
getClassName in interface ScannedItempublic byte[] getContent() throws IOException
getContent in interface ScannedItemIOExceptionpublic Class<?> loadAsClass() throws ClassNotFoundException, IOException, ClassFormatError
loadAsClass in interface ScannedItemClassNotFoundExceptionIOExceptionClassFormatErrorpublic Properties loadAsProperties() throws IOException, IllegalArgumentException
loadAsProperties in interface ScannedItemIOExceptionIllegalArgumentException