/*
* ToyotaCsv.File.cs
*
* Copyright © 2009
* Diversified Technical Systems, Inc.
* All Rights Reserved
*/
namespace DTS.Serialization.ToyotaCsv
{ ///
///
/// Basic representation of a Toyota CSV file.
///
///
public partial class File
: Serialization.File, IWritable
{ ///
///
/// Initialize an instance of the ToyotaCsv.File class.
///
///
public File()
: base("Toyota CSV")
{
}
///
/// Get this file format's extension.
///
public static string Extension => ".csv";
///
/// Get the file writer for this file type.
///
public IWriter Exporter
{
get
{
try
{
if (_Exporter == null)
_Exporter = new Writer(this, DefaultEncoding);
return _Exporter;
}
catch (System.Exception ex)
{
throw new Exception("encountered problem getting exporter", ex);
}
}
}
private IWriter _Exporter = null;
}
}