public class FlatFileUnigeneFactory extends java.lang.Object implements UnigeneFactory
A UnigeneFactory that will use flat-file indexing of the unigene ascii-art files.
This class is for developers and power-users. Usually you will not use this class directly, but rather use UnigeneTools.loadDatabase() with a file URL.
This will create all the index files necisary to look up records in a timely manner. It requires read/write access to the unigene directory. No files will be deleted during this opperation. The indexing strategy used is compattible with the OBDA flat-file indexing spec and uses the package org.biojava.bio.program.indexdb and parsers that are compattible with the tag-value API.
Constructor and Description |
---|
FlatFileUnigeneFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
canAccept(java.net.URL unigeneLoc)
Accepts all URLs that are of the file protocol.
|
UnigeneDB |
createUnigene(java.net.URL unigeneLoc) |
UnigeneDB |
loadUnigene(java.net.URL unigeneLoc) |
public boolean canAccept(java.net.URL unigeneLoc)
canAccept
in interface UnigeneFactory
public UnigeneDB loadUnigene(java.net.URL unigeneLoc) throws BioException
loadUnigene
in interface UnigeneFactory
BioException
public UnigeneDB createUnigene(java.net.URL unigeneLoc) throws BioException
createUnigene
in interface UnigeneFactory
BioException