|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Generically represents a way of reading Concept
s from some input source.
This source can be MR Files, update MR Files, a database, or pretty
much anything else that can be defined by one or more "locations" or "paths".
Method Summary | |
void |
close()
Closes the input stream. |
int |
getConceptProgress()
Returns the percentage of Concept s that have been processed so far. |
void |
open(String[] paths)
Opens the input stream. |
Concept |
readConcept()
Read a Concept from the input stream and return it. |
Method Detail |
public void open(String[] paths) throws IOException
paths
- paths to the sources of Metathesaurus data
IOException
- if there is a problem opening the input streampublic void close() throws IOException
IOException
- if there is a problem closing the input streampublic Concept readConcept() throws IOException
Concept
from the input stream and return it.
This method should provide the mapping between the input
data and Concept
objects. Furthermore, it should
be implemented like a stream, in the sense that only the
content for the next Concept
should be read into memory.
Concept
read from the input stream
IOException
- if there is a problem reading a conceptpublic int getConceptProgress()
Concept
s that have been processed so far.
Concept
s that have been processed so far
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |