Esempio n. 1
0
 public ChoManifoldWriter(ChoManifoldRecordConfiguration configuration = null)
 {
     Configuration = configuration;
     Init();
 }
 public ChoManifoldRecordReader(ChoManifoldRecordConfiguration configuration) : base(typeof(object))
 {
     ChoGuard.ArgumentNotNull(configuration, "Configuration");
     Configuration = configuration;
     //Configuration.Validate();
 }
Esempio n. 3
0
 public ChoManifoldWriter(StringBuilder sb, ChoManifoldRecordConfiguration configuration = null) : this(new StringWriter(sb), configuration)
 {
 }
Esempio n. 4
0
 public ChoManifoldReader(StringBuilder sb, ChoManifoldRecordConfiguration configuration = null) : this(new StringReader(sb.ToString()), configuration)
 {
 }
Esempio n. 5
0
        public static ChoManifoldReader LoadText(string inputText, Encoding encoding = null, ChoManifoldRecordConfiguration configuration = null, TraceSwitch traceSwitch = null)
        {
            var r = new ChoManifoldReader(inputText.ToStream(encoding), configuration)
            {
                TraceSwitch = traceSwitch == null ? ChoETLFramework.TraceSwitch : traceSwitch
            };

            r._closeStreamOnDispose = true;

            return(r);
        }
 public ChoManifoldRecordWriter(ChoManifoldRecordConfiguration configuration) : base(typeof(object))
 {
     ChoGuard.ArgumentNotNull(configuration, "Configuration");
     Configuration = configuration;
 }
Esempio n. 7
0
        public static ChoManifoldReader LoadText(string inputText, Encoding encoding = null, ChoManifoldRecordConfiguration configuration = null)
        {
            var r = new ChoManifoldReader(inputText.ToStream(encoding), configuration);

            r._closeStreamOnDispose = true;

            return(r);
        }
Esempio n. 8
0
 public static ChoManifoldReader LoadText(string inputText, ChoManifoldRecordConfiguration config, TraceSwitch traceSwitch = null)
 {
     return(LoadText(inputText, null, config, traceSwitch));
 }