textmaven.application.translator.writer
Class CardTranslationWriter

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

public class CardTranslationWriter
extends AbstractHTMLWriter

/** Writes translations optimized for learning card optimization. Card optimized output prints the dictionary key as first line in the translation.

Author:
Thomas Krebs

Field Summary
 
Fields inherited from interface textmaven.application.translator.writer.ITranslationWriter
NO_TRANSLATION
 
Constructor Summary
CardTranslationWriter()
           
 
Method Summary
 java.lang.String filterTranslation(java.lang.String trans)
           
 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.AbstractHTMLWriter
writeFooter
 
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

CardTranslationWriter

public CardTranslationWriter()
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
Overrides:
writeHeader in class AbstractHTMLWriter
See Also:
ITranslationWriter.writeHeader(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
Overrides:
writeTranslation in class AbstractHTMLWriter
See Also:
ITranslationWriter.writeTranslation(Writer, java.lang.String, java.util.Iterator, java.lang.String, java.lang.String, java.util.Vector)

filterTranslation

public java.lang.String filterTranslation(java.lang.String trans)
Specified by:
filterTranslation in class AbstractHTMLWriter


Copyright © 2002-2005 Sourceforge. All Rights Reserved.