anvil.annot
Class AnvilReader

java.lang.Object
  |
  +--anvil.annot.AnvilReader

public class AnvilReader
extends java.lang.Object

Reader for Annotations in Anvil format (extension .anvil) using the Xerces XML reader (written by Apache). Created: 1.6.00


Field Summary
 boolean debug
           
 
Constructor Summary
AnvilReader()
           
 
Method Summary
 AnnotationSpec extractAnnotationSpec(java.io.File file)
          Extracts specification from Anvil file.
 AnvilAnnotation getAnnotation(java.io.File file)
          Reads annotation file and creates an annotation object.
 AnvilAnnotation getAnnotation(java.io.File file, java.io.File specFile, java.io.File videoFile)
          Called by main after specfile and video file were requested from user.
 AnvilAnnotation getAnnotationIntern(java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public boolean debug
Constructor Detail

AnvilReader

public AnvilReader()
Method Detail

extractAnnotationSpec

public AnnotationSpec extractAnnotationSpec(java.io.File file)
                                     throws java.lang.Exception
Extracts specification from Anvil file.

java.lang.Exception

getAnnotation

public AnvilAnnotation getAnnotation(java.io.File file,
                                     java.io.File specFile,
                                     java.io.File videoFile)
                              throws java.lang.Exception
Called by main after specfile and video file were requested from user.

Parameters:
specFile - Specification file as given by user or null.
videoFile - Video file as given by user or null.
java.lang.Exception

getAnnotation

public AnvilAnnotation getAnnotation(java.io.File file)
                              throws java.lang.Exception
Reads annotation file and creates an annotation object. The path of the associated specification file must be in the Anvil file. It is used to read the specification (see ASReader.java).

Parameters:
file - File with annotation.
java.lang.Exception

getAnnotationIntern

public AnvilAnnotation getAnnotationIntern(java.io.File file)
                                    throws java.lang.Exception
java.lang.Exception