org.granite.scan
Class AbstractScannedItem
java.lang.Object
org.granite.scan.AbstractScannedItem
- All Implemented Interfaces:
- ScannedItem
- Direct Known Subclasses:
- FileScannedItem, VFS3FileScannedItem, VFSFileScannedItem, ZipScannedItem
public abstract class AbstractScannedItem
- extends Object
- implements ScannedItem
- Author:
- Franck WOLFF
AbstractScannedItem
public AbstractScannedItem(Scanner scanner,
ScannedItem marker)
getMarker
public ScannedItem getMarker()
- Specified by:
getMarker in interface ScannedItem
getScanner
public Scanner getScanner()
- Specified by:
getScanner in interface ScannedItem
getExtension
public String getExtension()
- Specified by:
getExtension in interface ScannedItem
getClassName
public String getClassName()
- Specified by:
getClassName in interface ScannedItem
getContent
public byte[] getContent()
throws IOException
- Specified by:
getContent in interface ScannedItem
- Throws:
IOException
loadAsClass
public Class<?> loadAsClass()
throws ClassNotFoundException,
IOException,
ClassFormatError
- Specified by:
loadAsClass in interface ScannedItem
- Throws:
ClassNotFoundException
IOException
ClassFormatError
loadAsProperties
public Properties loadAsProperties()
throws IOException,
IllegalArgumentException
- Specified by:
loadAsProperties in interface ScannedItem
- Throws:
IOException
IllegalArgumentException
toString
public String toString()
- Overrides:
toString in class Object