uk.ac.ed.inf.ogsaconfig.garm.collections.generators
Class GeneratedVFile

java.lang.Object
  |
  +--uk.ac.ed.inf.ogsaconfig.garm.VFile
        |
        +--uk.ac.ed.inf.ogsaconfig.garm.collections.generators.GeneratedVFile

public class GeneratedVFile
extends VFile


Constructor Summary
GeneratedVFile(java.io.File fp, java.io.File hierarchy, FileType type)
           
 
Method Summary
 java.io.File hierarchy()
          Returns the hierarchy of the file in the filesystem
 java.lang.String name()
          Returns the name of the file
 FileCollection source()
          Returns the file collection from which this file originates
 java.io.InputStream stream()
          Returns an InputStream from which the file itself can be read
 java.util.Date time()
          Returns the modification time of the file.
 FileType type()
          Returns the semantic type of the file
 
Methods inherited from class uk.ac.ed.inf.ogsaconfig.garm.VFile
equals, hashCode, hierarchiesEqual, isEmptyHierarchy
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratedVFile

public GeneratedVFile(java.io.File fp,
                      java.io.File hierarchy,
                      FileType type)
Method Detail

time

public java.util.Date time()
Description copied from class: VFile
Returns the modification time of the file. Used for freshness testing

Specified by:
time in class VFile

stream

public java.io.InputStream stream()
                           throws java.io.IOException
Description copied from class: VFile
Returns an InputStream from which the file itself can be read

Specified by:
stream in class VFile
java.io.IOException

name

public java.lang.String name()
Description copied from class: VFile
Returns the name of the file

Specified by:
name in class VFile

hierarchy

public java.io.File hierarchy()
Description copied from class: VFile
Returns the hierarchy of the file in the filesystem

Specified by:
hierarchy in class VFile

type

public FileType type()
Description copied from class: VFile
Returns the semantic type of the file

Specified by:
type in class VFile

source

public FileCollection source()
Description copied from class: VFile
Returns the file collection from which this file originates

Specified by:
source in class VFile