gov.nih.nlm.umls.io
Interface ConceptOutputStream

All Known Subinterfaces:
MetamorphoSysOutputStream, MetathesaurusOutputStream
All Known Implementing Classes:
OriginalMRFilesConceptOutputStream, OriginalMRMetamorphoSysOutputStream, OriginalMRMetathesaurusOutputStream, RichMRFilesConceptOutputStream, RichMRMetamorphoSysOutputStream, RichMRMetathesaurusOutputStream

public interface ConceptOutputStream

Generically represents a way of writing Concepts out. The output can be text files, text files plus a database load script, or pretty much anything else.

Author:
Deborah Shapiro

Method Summary
 void close()
          Closes the output stream.
 void open(String output_loc)
          Opens the output stream.
 void writeConcept(Concept concept)
          Write a Concept to the output stream.
 

Method Detail

open

public void open(String output_loc)
          throws IOException
Opens the output stream. Here is where the actual files or database for the output Metathesaurus should be opened.

Parameters:
output_loc - locator information for the output stream
Throws:
IOException - if there is a problem opening files

close

public void close()
           throws IOException
Closes the output stream. Here is where the actual files or database for the output Metathesaurus should be closed.

Throws:
IOException - if there is a problem closing files

writeConcept

public void writeConcept(Concept concept)
                  throws IOException
Write a Concept to the output stream.

Parameters:
concept - a Concept to write to the output stream
Throws:
IOException - if there is a problem reading the concept


Copyright ©2005