org.granite.scan
Class FileScannedItem

java.lang.Object
  extended by org.granite.scan.AbstractScannedItem
      extended by org.granite.scan.FileScannedItem
All Implemented Interfaces:
ScannedItem

public class FileScannedItem
extends AbstractScannedItem

Author:
Franck WOLFF

Constructor Summary
FileScannedItem(Scanner scanner, FileScannedItem marker, File root, File file)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAbsolutePath()
           
 File getFile()
           
 InputStream getInputStream()
           
 String getName()
           
 String getRelativePath()
           
 File getRoot()
           
 long getSize()
           
 int hashCode()
           
 
Methods inherited from class org.granite.scan.AbstractScannedItem
getClassName, getContent, getExtension, getMarker, getScanner, loadAsClass, loadAsProperties, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileScannedItem

public FileScannedItem(Scanner scanner,
                       FileScannedItem marker,
                       File root,
                       File file)
Method Detail

getRoot

public File getRoot()

getFile

public File getFile()

getSize

public long getSize()

getInputStream

public InputStream getInputStream()
                           throws IOException
Throws:
IOException

getName

public String getName()

getRelativePath

public String getRelativePath()

getAbsolutePath

public String getAbsolutePath()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object