/// <summary> /// Initializes a new FixedLengthBuilder with the given schema. /// </summary> /// <param name="writer">A writer over the fixed-length document.</param> /// <param name="injector">The schema injector to use to determine the schema.</param> /// <param name="options">The options used to format the output.</param> /// <exception cref="ArgumentNullException">The writer is null.</exception> /// <exception cref="ArgumentNullException">The schema injector is null.</exception> public FixedLengthWriter(TextWriter writer, FixedLengthSchemaInjector injector, FixedLengthOptions options = null) { if (writer == null) { throw new ArgumentNullException(nameof(writer)); } if (injector == null) { throw new ArgumentNullException(nameof(injector)); } if (options == null) { options = new FixedLengthOptions(); } recordWriter = new FixedLengthRecordWriter(writer, injector, options); }
public FixedLengthRecordWriter(TextWriter writer, FixedLengthSchemaInjector injector, FixedLengthOptions options) : this(writer, (FixedLengthSchema)null, options) { this.injector = injector; }
public FixedLengthSchemaInjectorWhenBuilder(FixedLengthSchemaInjector selector, Func <object[], bool> predicate) { this.selector = selector; this.predicate = predicate; }