org.granite.scan
Class AbstractScannedItem

java.lang.Object
  extended by 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

Constructor Summary
AbstractScannedItem(Scanner scanner, ScannedItem marker)
           
 
Method Summary
 String getClassName()
           
 byte[] getContent()
           
 String getExtension()
           
 ScannedItem getMarker()
           
 Scanner getScanner()
           
 Class<?> loadAsClass()
           
 Properties loadAsProperties()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.granite.scan.ScannedItem
getAbsolutePath, getInputStream, getName, getRelativePath, getSize
 

Constructor Detail

AbstractScannedItem

public AbstractScannedItem(Scanner scanner,
                           ScannedItem marker)
Method Detail

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