public abstract class AbstractScannedItem extends java.lang.Object implements ScannedItem
| Constructor and Description |
|---|
AbstractScannedItem(Scanner scanner,
ScannedItem marker) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClassName() |
byte[] |
getContent() |
java.lang.String |
getExtension() |
ScannedItem |
getMarker() |
Scanner |
getScanner() |
java.lang.Class<?> |
loadAsClass() |
java.util.Properties |
loadAsProperties() |
java.lang.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 java.lang.String getExtension()
getExtension in interface ScannedItempublic java.lang.String getClassName()
getClassName in interface ScannedItempublic byte[] getContent()
throws java.io.IOException
getContent in interface ScannedItemjava.io.IOExceptionpublic java.lang.Class<?> loadAsClass()
throws java.lang.ClassNotFoundException,
java.io.IOException,
java.lang.ClassFormatError
loadAsClass in interface ScannedItemjava.lang.ClassNotFoundExceptionjava.io.IOExceptionjava.lang.ClassFormatErrorpublic java.util.Properties loadAsProperties()
throws java.io.IOException,
java.lang.IllegalArgumentException
loadAsProperties in interface ScannedItemjava.io.IOExceptionjava.lang.IllegalArgumentExceptionpublic java.lang.String toString()
toString in class java.lang.Object