This class provides all the functions an application would need to parse Works documents. More...
#include <WPSDocument.h>
Static Public Member Functions | |
static WPSLIB WPSConfidence | isFileFormatSupported (WPXInputStream *input) |
Analyzes the content of an input stream to see if it can be parsed. | |
static WPSLIB WPSResult | parse (WPXInputStream *input, WPXDocumentInterface *documentInterface) |
Parses the input stream content. |
This class provides all the functions an application would need to parse Works documents.
WPSConfidence WPSDocument::isFileFormatSupported | ( | WPXInputStream * | input | ) | [static] |
Analyzes the content of an input stream to see if it can be parsed.
input | The input stream |
WPSResult WPSDocument::parse | ( | WPXInputStream * | input, |
WPXDocumentInterface * | documentInterface | ||
) | [static] |
Parses the input stream content.
It will make callbacks to the functions provided by a WPXDocumentInterface class implementation when needed. This is often commonly called the 'main parsing routine'.
input | The input stream |
documentInterface | A WPSListener implementation |