|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConceptInputStream
Generically represents a way of reading Concepts 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 Concepts that have been processed so far. |
String[] |
getWarnings()
Returns a String[] of warnings accumulated during
processing of the input stream. |
void |
open(String[] paths)
Opens the input stream. |
Concept |
readConcept()
Read a Concept from the input stream and return it. |
| Methods inherited from interface gov.nih.nlm.util.LocalNullValueSupport |
|---|
getNullValue, isEmptyValue, setNullValue |
| Method Detail |
|---|
void open(String[] paths)
throws IOException
paths - paths to the sources of Metathesaurus data
IOException - if there is a problem opening the input stream
void close()
throws IOException
IOException - if there is a problem closing the input stream
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 conceptint getConceptProgress()
Concepts that have been processed so far.
Concepts that have been processed so farString[] getWarnings()
String[] of warnings accumulated during
processing of the input stream.
String[] of warnings
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||