예제 #1
0
 public void Dispose()
 {
     if (br_ != null)
     {
         br_.Dispose();
         br_ = null;
     }
 }
예제 #2
0
        /// <summary>
        /// Reads the file.
        /// </summary>
        /// <param name="fileName">Path of the file to read.</param>
        /// <param name="maxRecords">The max number of records to read. Int32.MaxValue or -1 to read all records.</param>
        /// <returns>T[].</returns>
        public override T[] ReadFile(string fileName, int maxRecords)
        {
            using (var fs = new InternalStreamReader(fileName, Encoding, true, DefaultReadBufferSize))
            {
                var tempRes = ReadStream(fs, maxRecords);
                fs.Close();

                return(tempRes);
            }
        }
예제 #3
0
 public ExaStreamReader(Encoding encoding, int bufferSize = 655360)
 {
     br_ = new InternalStreamReader(encoding, bufferSize);
 }