java.lang.Object
net.i2p.util.TranslateReader.Tagger
- All Implemented Interfaces:
Closeable, AutoCloseable, TranslateReader.TagHook
- Enclosing class:
TranslateReader
Hook writing the tags out as a properties file.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intTags written so far.private final StringThe output file name.private final PrintStreamThe stream the output is written to.Constructor Summary
Method Summary
All Methods
Field Details
_out
The stream the output is written to._name
The output file name._count
private int _countTags written so far.
Constructor Details
Tagger
Builds the tagger writing to a file.- Parameters:
file- the output file name- Throws:
IOException- if the file cannot be opened
Method Details
tag
Description copied from interface:TranslateReader.TagHookHandles one tag found in the file.- Specified by:
tagin interfaceTranslateReader.TagHook- Parameters:
args- the arguments of the tag
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException