public class PhysicalParser : IAsyncDisposable,
IDisposable
Public Class PhysicalParser
Implements IAsyncDisposable, IDisposable
public ref class PhysicalParser : IAsyncDisposable,
IDisposable
Gemstone.PQDIF.Physical.PhysicalParser = function();
Type.createClass(
'Gemstone.PQDIF.Physical.PhysicalParser',
null,
IAsyncDisposable,
IDisposable);
This class is used internally by the LogicalParser to read the physical structure of the PQDIF file. If your goal is to read data from a PQD file into an application, you probably do not want to instantiate the physical parser directly. Instead, the logical parser will apply the rules governing the logical structure of the PQDIF file to make the data more readily usable by an application that will be processing that data.
The following example of usage was adapted from the PQDIFDump utility, which represents a bare minimum level of effort to read an uncompressed PQDIF file and display its contents in a console application.
string filePath = args[0];
await using PhysicalParser parser = new PhysicalParser(filePath);
await parser.OpenAsync();
while (parser.HasNextRecord())
{
Record record = await parser.GetNextRecordAsync();
Console.WriteLine(record);
Console.WriteLine();
}
PhysicalParser | Creates a new instance of the PhysicalParser class. |
PhysicalParser(String) | Creates a new instance of the PhysicalParser class. |
CompressionAlgorithm | Gets or sets the compression algorithm used by the PQDIF file. |
CompressionStyle | Gets or sets the compression style used by the PQDIF file. |
ExceptionList | Gets all the exceptions encountered while parsing. |
FileName |
Gets or sets the file path (not just the name) of the PQDIF file to be parsed.
Obsolete in favor of FilePath.
Obsolete. |
FilePath | Gets or sets the file path of the PQDIF file to be parsed. |
MaximumExceptionsAllowed | Gets or sets the maximum number of exceptions in the exception list before parser will quit. |
MaximumExceptionsReached | Gets a value that indicates whether the maximum number of exceptions has been reached. |
CloseAsync | Closes the PQDIF file. |
Dispose | Releases all resources held by this parser. |
DisposeAsync | Releases all resources held by this parser. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetNextRecordAsync | Reads the next record from the PQDIF file. |
GetType | Gets the Type of the current instance. (Inherited from Object) |
HasNextRecord | Returns true if this parser has not reached the end of the PQDIF file. |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
OpenAsync | Opens the PQDIF file. |
OpenAsync(Stream, Boolean) | Opens a PQDIF file from a stream of data. |
Reset | Sets the parser back to the beginning of the file. |
Seek | Jumps in the file to the location of the record with the given header. |
ToString | Returns a string that represents the current object. (Inherited from Object) |