<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

GenericCsvReader2

Represents an exception that occured while attempting to import data.
using Microsoft.VisualBasic; using Relativity.DataExchange.Io; using Relativity.Logging; using System; using System.IO; using System.Text; using System.Threading; namespace Relativity.DataExchange.Data { internal class GenericCsvReader2 : DelimitedFileImporter2 { public bool Eof => base.Reader.Peek() == -1; public GenericCsvReader2(string file, bool retry) : this(file, Encoding.Default, retry) { } public GenericCsvReader2(string file, Encoding encoding, bool retry) : this(file, encoding, new IoReporterContext { RetryOptions = (retry ? RetryOptions.Io : RetryOptions.None) }, new NullLogger(), CancellationToken.None) { } public GenericCsvReader2(string file, ILog logger, CancellationToken token) : this(file, Encoding.Default, new IoReporterContext(), logger, token) { } public GenericCsvReader2(string file, IoReporterContext context, ILog logger, CancellationToken token) : this(file, Encoding.Default, context, logger, token) { } public GenericCsvReader2(string file, Encoding encoding, IoReporterContext context, ILog logger, CancellationToken token) : base(',', '"', Strings.ChrW(10), context, logger, token) { base.Reader = new StreamReader(file, encoding); } public string[] ReadLine() { if (base.Reader.Peek() == -1) return null; return GetLine(); } public override object ReadFile(string path) { throw new NotSupportedException("This function is deprecated"); } } }