TCSVHandler class
Base class for CSV reading and writing classes.
Declaration
TCSVHandler = class(TPersistent)Inheritance
- TCSVHandler
- TPersistent
- TObject
Descends from it: TCSVBuilder TCSVDocument TCSVParser
Description
TCSVHandler is the base class for class
TCSVParser which allows you to read a CSV file,
and class
TCSVBuilder which allows you to write a CSV file. It defines some common properties for
these classes, mainly to describe the formatting of the CSV file, such as the
Delimiter
or
QuoteChar and
LineEnding properties.
Normally you will not create an instance of TCSVHandler,
instead you will create a TCSVParser or TCSVBuilder instance.
See also
Properties
Delimiter | public | Field delimiter character. |
QuoteChar | public | Character to quote values. |
LineEnding | public | Line ending character. |
IgnoreOuterWhitespace | public | Ignore whitespace between delimiters and field data. |
QuoteOuterWhitespace | public | Write quotes when outer whitespace is found in a value. |
EqualColCountPerRow | public | Ensure every row has an equal amount of columns. |
Methods
Create | public | Create an instance of TCSVHandler. |
Assign | public | Assign properties from another TCSVHandler instance. |
AssignCSVProperties | public | Assign properties from another TCSVHandler instance. |
Fields
FDelimiter | protected | |
FQuoteChar | protected | |
FLineEnding | protected | |
FSpecialChars | protected | |
FDoubleQuote | protected | |
FIgnoreOuterWhitespace | protected | |
FQuoteOuterWhitespace | protected | |
FEqualColCountPerRow | protected |
Inherited
From TPersistent (8)
AssignTo DefineProperties Destroy FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath GetOwner
From TObject (40)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
