FixedWidthReader Class |
Namespace: DataStreams.FixedWidth
The FixedWidthReader type exposes the following members.
Name | Description | |
---|---|---|
FixedWidthReader(TextReader) |
Constructs a FixedWidthReader object using
a TextReader object as the data
source. Uses a comma as the column delimiter.
| |
FixedWidthReader(String) |
Creates a FixedWidthReader object using a
file as the data source. Uses a comma as the column
delimiter and Default as the
encoding.
| |
FixedWidthReader(Stream, Encoding) |
Constructs a FixedWidthReader object using
a Stream object as the data
source.
| |
FixedWidthReader(String, Encoding) |
Creates a FixedWidthReader object using a
file as the data source.
|
Name | Description | |
---|---|---|
Close |
Closes and releases all related resources.
(Inherited from ReaderBase.) | |
Equals | (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
Parse |
Creates a FixedWidthReader object using
a string of data as the source. Uses Default
as the encoding.
| |
ReadRecord |
Reads another record.
(Overrides ReaderBaseReadRecord.) | |
ReadToEnd |
Reads till the end of the fixed width data. Reads the
first line in the data as column headers.
| |
ReadToEnd(UInt64) |
Reads till the end of the fixed width data.
| |
SkipLine |
Skips the next line of data using the standard
end of line characters and does not do any
column delimited parsing.
| |
SkipRecord |
Skips the next record of data by parsing each column.
Does not increment CurrentRecord.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Columns | ||
CurrentRecord |
The index of the current record.
(Inherited from ReaderBase.) | |
ItemInt32 |
Returns the current column value for a given column index.
(Inherited from ReaderBase.) | |
ItemString |
Returns the current column value corresponding to the
columnName.
| |
RawRecord |
Returns the text of the current record as it existed before parsing.
| |
Settings |
Has all the options that are able to be set that will affect the way
records are parsed.
| |
Values |
Returns the columns values for the current record as a string array.
(Inherited from ReaderBase.) |