This class provides all the functions an application would need to parse Works documents. More...
#include <WPSDocument.h>
Static Public Member Functions | |
static WPSConfidence | isFileFormatSupported (WPSInputStream *input, bool partialContent) |
Analyzes the content of an input stream to see if it can be parsed. | |
static WPSResult | parse (WPSInputStream *input, WPXHLListenerImpl *listenerImpl) |
Parses the input stream content. |
This class provides all the functions an application would need to parse Works documents.
WPSConfidence WPSDocument::isFileFormatSupported | ( | WPSInputStream * | input, | |
bool | partialContent | |||
) | [static] |
Analyzes the content of an input stream to see if it can be parsed.
input | The input stream | |
partialContent | A boolean which states if the content from the input stream represents the full contents of a MS Works file, or just the first X bytes |
WPSResult WPSDocument::parse | ( | WPSInputStream * | input, | |
WPXHLListenerImpl * | listenerImpl | |||
) | [static] |
Parses the input stream content.
It will make callbacks to the functions provided by a WPXHLListenerImpl class implementation when needed. This is often commonly called the 'main parsing routine'.
input | The input stream | |
listenerImpl | A WPSContentListener implementation |