net.sf.okapi.common.filterwriter.ext
Class TMXFilterWriter

java.lang.Object
  extended by net.sf.okapi.common.filterwriter.ext.TMXFilterWriter
All Implemented Interfaces:
net.sf.okapi.common.filterwriter.IFilterWriter

public class TMXFilterWriter
extends java.lang.Object
implements net.sf.okapi.common.filterwriter.IFilterWriter

Implementation of IFilterWriter for TMX. This class is not designed to be used with the TMX Filter, but as a standalone writer that can be driven by filter events.


Constructor Summary
TMXFilterWriter()
           
TMXFilterWriter(TMXWriter writer)
           
 
Method Summary
 void cancel()
           
 void close()
           
 net.sf.okapi.common.encoder.EncoderManager getEncoderManager()
           
 java.lang.String getName()
           
 net.sf.okapi.common.IParameters getParameters()
           
 net.sf.okapi.common.skeleton.ISkeletonWriter getSkeletonWriter()
           
 net.sf.okapi.common.Event handleEvent(net.sf.okapi.common.Event event)
           
 void setOptions(net.sf.okapi.common.LocaleId locale, java.lang.String defaultEncoding)
          Sets the options for this writer.
 void setOutput(java.io.OutputStream output)
           
 void setOutput(java.lang.String path)
           
 void setParameters(net.sf.okapi.common.IParameters params)
           
 void setSegType(java.lang.String segType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TMXFilterWriter

public TMXFilterWriter()

TMXFilterWriter

public TMXFilterWriter(TMXWriter writer)
Method Detail

setSegType

public void setSegType(java.lang.String segType)

cancel

public void cancel()
Specified by:
cancel in interface net.sf.okapi.common.filterwriter.IFilterWriter

close

public void close()
Specified by:
close in interface net.sf.okapi.common.filterwriter.IFilterWriter

getName

public java.lang.String getName()
Specified by:
getName in interface net.sf.okapi.common.filterwriter.IFilterWriter

getEncoderManager

public net.sf.okapi.common.encoder.EncoderManager getEncoderManager()
Specified by:
getEncoderManager in interface net.sf.okapi.common.filterwriter.IFilterWriter

getSkeletonWriter

public net.sf.okapi.common.skeleton.ISkeletonWriter getSkeletonWriter()
Specified by:
getSkeletonWriter in interface net.sf.okapi.common.filterwriter.IFilterWriter

getParameters

public net.sf.okapi.common.IParameters getParameters()
Specified by:
getParameters in interface net.sf.okapi.common.filterwriter.IFilterWriter

handleEvent

public net.sf.okapi.common.Event handleEvent(net.sf.okapi.common.Event event)
Specified by:
handleEvent in interface net.sf.okapi.common.filterwriter.IFilterWriter

setOptions

public void setOptions(net.sf.okapi.common.LocaleId locale,
                       java.lang.String defaultEncoding)
Sets the options for this writer.

Specified by:
setOptions in interface net.sf.okapi.common.filterwriter.IFilterWriter
Parameters:
locale - output locale.
defaultEncoding - this argument is ignored for this writer: the output is always UTF-8.

setOutput

public void setOutput(java.lang.String path)
Specified by:
setOutput in interface net.sf.okapi.common.filterwriter.IFilterWriter

setOutput

public void setOutput(java.io.OutputStream output)
Specified by:
setOutput in interface net.sf.okapi.common.filterwriter.IFilterWriter

setParameters

public void setParameters(net.sf.okapi.common.IParameters params)
Specified by:
setParameters in interface net.sf.okapi.common.filterwriter.IFilterWriter