|
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 |
| |
- 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
| static <TextendsAnnotation> AnnotationList<T> umms.core.annotation.AnnotationFileReader.load |
( |
File |
file, |
|
|
Class< T > |
clazz, |
|
|
TabbedReader.Factory<?extends T > |
factory |
|
) |
| throws IOException |
|
static |
| static <TextendsAnnotation> AnnotationList<T> umms.core.annotation.AnnotationFileReader.load |
( |
File |
file, |
|
|
Class< T > |
clazz, |
|
|
TabbedReader.Factory<?extends T > |
factory, |
|
|
CoordinateSpace |
cs |
|
) |
| throws IOException |
|
static |
| 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 |
| 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> | |
| file | File containing annotations |
| clazz | The class of the desired AnnotationList |
| cs | CoordinateSpace with which to initialize the AnnotationList. Can be null. |
| factory | Factory for parsing and creating the annotation type |
| filter | Annotation 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
-
| 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
| static <TextendsAnnotation> CloseableIterator<T> umms.core.annotation.AnnotationFileReader.read |
( |
File |
file, |
|
|
Class< T > |
clazz, |
|
|
TabbedReader.Factory<?extends T > |
factory |
|
) |
| throws IOException |
|
static |
The documentation for this class was generated from the following file: