Package org.omegat.gui.glossary
Class GlossaryReaderTSV
java.lang.Object
org.omegat.gui.glossary.GlossaryReaderTSV
Reader for tab separated glossaries.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidappend(File file, GlossaryEntry newEntry) Appends entry to glossary file.static booleancreateEmpty(File file) Create a new empty TSV glossary file with a leading commentstatic StringgetFileEncoding(File file) static StringgetFileEncoding(File file, String defaultEncoding) static List<GlossaryEntry>
-
Method Details
-
createEmpty
Create a new empty TSV glossary file with a leading comment- Parameters:
file-- Returns:
- true if the file was created successfully
- Throws:
IOException
-
getFileEncoding
- Throws:
IOException
-
getFileEncoding
- Throws:
IOException
-
read
- Throws:
IOException
-
append
Appends entry to glossary file. If file does not exist yet, it will be created.- Parameters:
file- The file to (create and) append tonewEntry- the entry to append.- Throws:
IOException
-