/// <summary> /// Initializes a new instance of the <see cref="GafReader"/> class. /// </summary> /// <param name="s">The stream to read from.</param> /// <param name="adapter">The adapter to pass read data to.</param> public GafReader(Stream s, IGafReaderAdapter adapter) : this(new BinaryReader(s), adapter) { }
/// <summary> /// Initializes a new instance of the <see cref="GafReader"/> class. /// </summary> /// <param name="reader">The reader to read from.</param> /// <param name="adapter">The adapter to pass read data to.</param> public GafReader(BinaryReader reader, IGafReaderAdapter adapter) { this.reader = reader; this.adapter = adapter; }
/// <summary> /// Initializes a new instance of the <see cref="GafReader"/> class. /// </summary> /// <param name="filename">The path of the GAF file to read.</param> /// <param name="adapter">The adapter to pass read data to.</param> public GafReader(string filename, IGafReaderAdapter adapter) : this(File.OpenRead(filename), adapter) { }