textmaven.application.translator.writer
Class VocabularyTrainerWriter

java.lang.Object
  extended bytextmaven.application.translator.writer.AbstractTranslationWriter
      extended bytextmaven.application.translator.writer.VocabularyTrainerWriter
All Implemented Interfaces:
ITranslationWriter

public class VocabularyTrainerWriter
extends AbstractTranslationWriter

/** Writes translations which can be imported by the VocabularyTrainer

Author:
Thomas Krebs

Field Summary
 
Fields inherited from class textmaven.application.translator.writer.AbstractTranslationWriter
mBook, mSentences
 
Fields inherited from interface textmaven.application.translator.writer.ITranslationWriter
NO_TRANSLATION
 
Constructor Summary
VocabularyTrainerWriter()
           
 
Method Summary
 void writeFooter(java.io.Writer out)
          Called after writing all translations.
 void writeHeader(java.io.Writer out)
          Called before writing any translations.
 void writeTranslation(java.io.Writer out, java.lang.String key, java.util.Iterator translations, java.lang.String line, java.lang.String chapter, java.util.Vector sentences)
          Called for each translation.
 
Methods inherited from class textmaven.application.translator.writer.AbstractTranslationWriter
formatTranslation, getBookTitle, getId, getNrOfSentences, setBookTitle, setId, setNrOfSentences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VocabularyTrainerWriter

public VocabularyTrainerWriter()
Method Detail

writeHeader

public void writeHeader(java.io.Writer out)
Description copied from interface: ITranslationWriter
Called before writing any translations. Implementations should write any header informations required before translations are written.

Specified by:
writeHeader in interface ITranslationWriter
Specified by:
writeHeader in class AbstractTranslationWriter
See Also:
ITranslationWriter.writeHeader(Writer)

writeFooter

public void writeFooter(java.io.Writer out)
Description copied from interface: ITranslationWriter
Called after writing all translations. Implementations should write any trailing information.

Specified by:
writeFooter in interface ITranslationWriter
Specified by:
writeFooter in class AbstractTranslationWriter
See Also:
ITranslationWriter.writeFooter(Writer)

writeTranslation

public void writeTranslation(java.io.Writer out,
                             java.lang.String key,
                             java.util.Iterator translations,
                             java.lang.String line,
                             java.lang.String chapter,
                             java.util.Vector sentences)
Description copied from interface: ITranslationWriter
Called for each translation.

Specified by:
writeTranslation in interface ITranslationWriter
Specified by:
writeTranslation in class AbstractTranslationWriter
See Also:
ITranslationWriter.writeTranslation(Writer, String, Iterator, String, String, Vector)


Copyright © 2002-2005 Sourceforge. All Rights Reserved.