public class RemoteDomainProvider extends SerializableCache<String,SortedSet<String>> implements DomainProvider
Modifier and Type | Field and Description |
---|---|
String |
url |
cacheFileName, serializedCache
Constructor and Description |
---|
RemoteDomainProvider() |
RemoteDomainProvider(boolean cache)
initialize this provider with caching enabled
|
Modifier and Type | Method and Description |
---|---|
void |
flushCache() |
SortedSet<String> |
getDomainNames(String name)
Get a list of constituent domain identifiers
|
SortedSet<String> |
getRepresentativeDomains()
Get the full list of representative domains for the PDB.
|
static void |
main(String[] args) |
cache, disableCache, enableCache, get, isCacheEnabled, reloadFromFile
public RemoteDomainProvider()
public RemoteDomainProvider(boolean cache) throws IOException
cache
- IOException
public SortedSet<String> getDomainNames(String name) throws IOException, StructureException
DomainProvider
getDomainNames
in interface DomainProvider
name
- a structure identifierIOException
- For IO errors getting the domainsStructureException
- For errors converting name to a valid identifierpublic static void main(String[] args) throws IOException, StructureException
IOException
StructureException
public void flushCache()
flushCache
in class SerializableCache<String,SortedSet<String>>
public SortedSet<String> getRepresentativeDomains() throws IOException
DomainProvider
getRepresentativeDomains
in interface DomainProvider
IOException
- For IO errors getting the representativesCopyright © 2000–2019 BioJava. All rights reserved.