|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nlm.umls.io.RichMRFilesConceptOutputStream
This ConceptOutputStream generates a subset of
"Rich Release Format" MR files.
| Field Summary | |
protected boolean |
add_unicode_bom
|
protected static String |
file_ext
|
protected String |
mr_dir
|
protected Map |
mr_targets
|
protected static String[] |
target_files
|
protected Map |
target_to_output_stream
|
protected boolean |
versioned_output
|
| Constructor Summary | |
RichMRFilesConceptOutputStream()
Instantiates an empty RichMRFilesConceptOutputStream. |
|
| Method Summary | |
void |
close()
Closes source files that were opened by @link #open(String)}. |
void |
flush(String file_name)
|
protected long |
getFilePosition(String name)
DO NOT USE. |
void |
open(String mr_dir)
Opens all Rich Release Format MR files in the specified directory. |
protected BufferedWriter |
openTargetFile(String name)
Opens the specified file in the directory passed to open(String). |
protected void |
printLine(String line,
String file_name)
Prints the given line to the file with the given name. |
void |
writeConcept(Concept concept)
Writes a Concept to the appropriate MR files. |
protected void |
writeMRCOC(Concept concept)
Writes MRCOC.RRF entries for a Concept |
protected void |
writeMRCONSO(Concept concept)
Writes MRCONSO.RRF entries for a Concept |
protected void |
writeMRCXT(Concept concept)
Writes MRCXT.RRF entries for a Concept |
protected void |
writeMRDEF(Concept concept)
Writes MRDEF.RRF entries for a Concept |
protected void |
writeMRHIER(Concept concept)
Writes MRHIER entries for a Concept |
protected void |
writeMRHIST(Concept concept)
Writes MRHIST.RRF entries for a Concept |
protected void |
writeMRMAP(Concept concept)
Writes MRMAP.RRF entries for a Concept |
protected void |
writeMRREL(Concept concept)
Writes MRREL.RRF entries for a Concept |
protected void |
writeMRSAT(Concept concept)
Writes MRSAT.RRF entries for a Concept |
protected void |
writeMRSMAP(Concept concept)
Writes MRSMAP.RRF entries for a Concept |
protected void |
writeMRSTY(Concept concept)
Writes MRSTY.RRF entries for a Concept |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Map mr_targets
protected static String[] target_files
protected static String file_ext
protected Map target_to_output_stream
protected String mr_dir
protected boolean versioned_output
protected boolean add_unicode_bom
| Constructor Detail |
public RichMRFilesConceptOutputStream()
RichMRFilesConceptOutputStream.
| Method Detail |
public void open(String mr_dir)
throws IOException
open in interface ConceptOutputStreammr_dir - the subset directory
IOException - if the files cannot be opened
public void flush(String file_name)
throws IOException
IOException
public void close()
throws IOException
close in interface ConceptOutputStreamIOException - if the files could not be cloesed
protected void printLine(String line,
String file_name)
throws IOException
line - the line to be printedfile_name - printing destination
IOException
public void writeConcept(Concept concept)
throws IOException
Concept to the appropriate MR files.
writeConcept in interface ConceptOutputStreamconcept - the Concept to write
IOException - if the files could not be written
protected void writeMRCOC(Concept concept)
throws IOException
MRCOC.RRF entries for a Concept
concept - the Concept to write
IOException - if anything goes wrong
protected void writeMRCONSO(Concept concept)
throws IOException
MRCONSO.RRF entries for a Concept
concept - the Concept to write
IOException - if anything goes wrong
protected void writeMRCXT(Concept concept)
throws IOException
MRCXT.RRF entries for a Concept
concept - the Concept to write
IOException - if anything goes wrong
protected void writeMRHIER(Concept concept)
throws IOException
MRHIER entries for a Concept
concept - the Concept to write
IOException - if anything goes wrong
protected void writeMRDEF(Concept concept)
throws IOException
MRDEF.RRF entries for a Concept
concept - the Concept to write
IOException - if anything goes wrong
protected void writeMRSTY(Concept concept)
throws IOException
MRSTY.RRF entries for a Concept
concept - the Concept to write
IOException - if anything goes wrong
protected void writeMRREL(Concept concept)
throws IOException
MRREL.RRF entries for a Concept
concept - the Concept to write
IOException - if anything goes wrong
protected void writeMRSAT(Concept concept)
throws IOException
MRSAT.RRF entries for a Concept
concept - the Concept to write
IOException - if anything goes wrong
protected void writeMRMAP(Concept concept)
throws IOException
MRMAP.RRF entries for a Concept
concept - the Concept to write
IOException - if anything goes wrong
protected void writeMRSMAP(Concept concept)
throws IOException
MRSMAP.RRF entries for a Concept
concept - the Concept to write
IOException - if anything goes wrong
protected void writeMRHIST(Concept concept)
throws IOException
MRHIST.RRF entries for a Concept
concept - the Concept to write
IOException - if anything goes wrong
protected BufferedWriter openTargetFile(String name)
throws IOException
open(String).
name - the filename
BufferedWriter for the file
IOException - if the file could not be opened.
protected long getFilePosition(String name)
throws IOException
name - the name
IOException - if anything goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||