public class TMXFilterWriter extends Object implements IFilterWriter
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 and Description |
|---|
TMXFilterWriter() |
TMXFilterWriter(TMXWriter writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the current process.
|
void |
close()
Closes the output.
|
EncoderManager |
getEncoderManager()
Gets the current encoder manager for this writer.
|
String |
getName()
Gets the name of this writer.
|
Parameters |
getParameters()
Gets the current parameters for this writer.
|
ISkeletonWriter |
getSkeletonWriter()
Gets the skeleton writer associated with this writer.
|
Event |
handleEvent(Event event)
Handles the filter events.
|
void |
setOptions(LocaleId locale,
String defaultEncoding)
Sets the options for this writer.
|
void |
setOutput(OutputStream output)
Sets the output through its output stream.
|
void |
setOutput(String path)
Sets the output through the path of the output file.
|
void |
setParameters(IParameters params)
Sets new parameters for this writer.
|
void |
setSegType(String segType) |
public TMXFilterWriter()
public TMXFilterWriter(TMXWriter writer)
public void setSegType(String segType)
public void cancel()
IFilterWritercancel in interface IFilterWriterpublic void close()
IFilterWriterclose in interface AutoCloseableclose in interface IFilterWriterpublic String getName()
IFilterWritergetName in interface IFilterWriterpublic EncoderManager getEncoderManager()
IFilterWritergetEncoderManager in interface IFilterWriterpublic ISkeletonWriter getSkeletonWriter()
IFilterWritergetSkeletonWriter in interface IFilterWriterpublic Parameters getParameters()
IFilterWritergetParameters in interface IFilterWriterpublic Event handleEvent(Event event)
IFilterWriterhandleEvent in interface IFilterWriterevent - The event to process.public void setOptions(LocaleId locale, String defaultEncoding)
setOptions in interface IFilterWriterlocale - output locale.defaultEncoding - this argument is ignored for this writer: the output is always UTF-8.public void setOutput(String path)
IFilterWritersetOutput in interface IFilterWriterpath - Full path of the output file.public void setOutput(OutputStream output)
IFilterWritersetOutput in interface IFilterWriteroutput - Output stream to use for the output.public void setParameters(IParameters params)
IFilterWritersetParameters in interface IFilterWriterparams - The new parameters to use.Copyright © 2021. All rights reserved.