DbfHeader
Parses the DBF table header used to locate attribute records and interpret their fields.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class DbfHeader
Inheritance: objectDbfHeader
Constructors
Initializes an empty header without reading a DBF stream.
protected DbfHeader()
Reads a DBF header from the beginning of a dBASE table stream.
public DbfHeader(Stream stream, Encoding encoding)
The DBF stream, positioned at its beginning.
encodingEncodingThe encoding for field names and values. If null, the encoding is selected from the DBF language-driver identifier, falling back to Default when that identifier is not mapped.
Exceptions: NotSupportedExceptionThe DBF file type is not supported.
Properties
Gets an error recorded while parsing a DBF header from buffered data; stream-based parsing reports invalid file types by throwing instead.
public Exception Error { get; }
Gets the total byte length of each attribute record, including its deletion marker.
public int RecordLength { get; }
Gets the byte offset from the beginning of the DBF stream to its first attribute record.
public int RecordsOffset { get; }
Methods
Parses a DBF header from the beginning of a table stream.
public static DbfHeader Create(Stream stream, Encoding encoding)
The DBF stream, positioned at its beginning.
encodingEncodingThe encoding for field names and values, or null to use the DBF language-driver identifier.
Returns:The parsed header and its record-layout information.
Exceptions: NotSupportedExceptionThe DBF file type is not supported.