textmaven.application.translator.writer
Class AbstractHTMLWriter

java.lang.Object
  extended bytextmaven.application.translator.writer.AbstractTranslationWriter
      extended bytextmaven.application.translator.writer.AbstractHTMLWriter
All Implemented Interfaces:
ITranslationWriter
Direct Known Subclasses:
BrowserTranslationWriter, CardTranslationWriter, WordTranslationWriter

public abstract class AbstractHTMLWriter
extends AbstractTranslationWriter

Encapsulates common behaviour for writers generating HTML code.

Author:
krebtho

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
AbstractHTMLWriter()
           
 
Method Summary
abstract  java.lang.String filterTranslation(java.lang.String trans)
           
 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

AbstractHTMLWriter

public AbstractHTMLWriter()
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

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

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

filterTranslation

public abstract java.lang.String filterTranslation(java.lang.String trans)


Copyright © 2002-2005 Sourceforge. All Rights Reserved.