ESAT
 All Classes Namespaces Files Functions Variables Enumerator Pages
Classes | Static Public Member Functions | List of all members
umms.core.annotation.AnnotationFileReader Class Reference

Static Public Member Functions

static< TextendsAnnotation >
AnnotationList< T > 
load (File file, Class< T > clazz, TabbedReader.Factory<?extends T > factory) throws IOException
 
static< TextendsAnnotation >
AnnotationList< T > 
load (File file, Class< T > clazz, TabbedReader.Factory<?extends T > factory, CoordinateSpace cs) throws IOException
 
static< TextendsAnnotation >
AnnotationList< T > 
load (File file, Class< T > clazz, TabbedReader.Factory<?extends T > factory, CoordinateSpace cs, Collection< Predicate<?super T >> filters) throws IOException
 
static< TextendsAnnotation >
AnnotationList< T > 
load (File file, Class< T > clazz, TabbedReader.Factory<?extends T > factory, CoordinateSpace cs, Predicate<?super T > filter) throws IOException
 
static< TextendsAnnotation >
CloseableIterator< T > 
read (File file, Class< T > clazz, TabbedReader.Factory<?extends T > factory, Predicate<?super T > filter) throws IOException
 
static< TextendsAnnotation >
CloseableIterator< T > 
read (File file, Class< T > clazz, TabbedReader.Factory<?extends T > factory) throws IOException
 

Detailed Description

Author
engreitz This class is responsible for reading annotation files and generating AnnotationLists from them. Parsing logic is partially copied from broad.core.annotation.AnnotationReader

Member Function Documentation

static <TextendsAnnotation> AnnotationList<T> umms.core.annotation.AnnotationFileReader.load ( File  file,
Class< T >  clazz,
TabbedReader.Factory<?extends T >  factory 
) throws IOException
static

Here is the caller graph for this function:

static <TextendsAnnotation> AnnotationList<T> umms.core.annotation.AnnotationFileReader.load ( File  file,
Class< T >  clazz,
TabbedReader.Factory<?extends T >  factory,
CoordinateSpace  cs 
) throws IOException
static

Here is the call graph for this function:

static <TextendsAnnotation> AnnotationList<T> umms.core.annotation.AnnotationFileReader.load ( File  file,
Class< T >  clazz,
TabbedReader.Factory<?extends T >  factory,
CoordinateSpace  cs,
Collection< Predicate<?super T >>  filters 
) throws IOException
static

Here is the call graph for this function:

static <TextendsAnnotation> AnnotationList<T> umms.core.annotation.AnnotationFileReader.load ( File  file,
Class< T >  clazz,
TabbedReader.Factory<?extends T >  factory,
CoordinateSpace  cs,
Predicate<?super T >  filter 
) throws IOException
static

Reads an Annotation file line by line and return an AnnotationList containing the results

Parameters
<T>
fileFile containing annotations
clazzThe class of the desired AnnotationList
csCoordinateSpace with which to initialize the AnnotationList. Can be null.
factoryFactory for parsing and creating the annotation type
filterAnnotation filters to control the subset of annotations that are stored in the AnnotationList.
Returns
AnnotationList containing all annotations from file that pass the filter
Exceptions
IOException

Here is the call graph for this function:

static <TextendsAnnotation> CloseableIterator<T> umms.core.annotation.AnnotationFileReader.read ( File  file,
Class< T >  clazz,
TabbedReader.Factory<?extends T >  factory,
Predicate<?super T >  filter 
) throws IOException
static

Read an Annotation file line by line in a buffered format and return an iterator over the results. Should be refactored with the "load" function as appropriate ("load" can call this function and then add it to its Annotation list)

Parameters
file
clazz
factory
cs
filter
Returns

Here is the caller graph for this function:

static <TextendsAnnotation> CloseableIterator<T> umms.core.annotation.AnnotationFileReader.read ( File  file,
Class< T >  clazz,
TabbedReader.Factory<?extends T >  factory 
) throws IOException
static

Here is the call graph for this function:


The documentation for this class was generated from the following file: