Class TMXWriter
Represents a writer for exporting translation units into the TMX format.
Inheritance
Inherited Members
Namespace: Sdl.LanguagePlatform.IO.TMX
Assembly: Sdl.LanguagePlatform.IO.dll
Syntax
public class TMXWriter : IEventReceiver, IDisposable
Constructors
TMXWriter(Stream)
Initializes a new instance of the TMXWriter class with the specified output stream and UTF8 encoding.
Declaration
public TMXWriter(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The output stream. |
TMXWriter(Stream, TMXWriterSettings)
Initializes a new instance of the TMXWriter class with the specified output stream and encoding.
Declaration
public TMXWriter(Stream outStream, TMXWriterSettings writerSettings)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | outStream | The output stream. |
TMXWriterSettings | writerSettings | The TMXWriterSettingsTMX writer settings to apply. |
TMXWriter(String)
Initializes a new instance of the TMXWriter class with the specified file name and UTF8 encoding.
Declaration
public TMXWriter(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | The file name. |
TMXWriter(String, TMXWriterSettings)
Initializes a new instance of the TMXWriter class with the specified file name and encoding.
Declaration
public TMXWriter(string filename, TMXWriterSettings writerSettings)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | The file name. |
TMXWriterSettings | writerSettings | The TMXWriterSettingsTMX writer settings to apply. |
Methods
Close()
Closes the underlying writer.
Declaration
public void Close()
Dispose()
Declaration
public void Dispose()
Emit(Event)
Writes the specified event to the associated export writer.
Declaration
public void Emit(Event e)
Parameters
Type | Name | Description |
---|---|---|
Event | e | The event. |