public class MultipageParser extends HandlerBase
| Modifier and Type | Field and Description |
|---|---|
static String |
DTD_1
The DTD for multipage models.
|
static String |
DTD_URL
The URL where the DTD is stored.
|
static String |
MULTIPAGE_TAG
The string constant that specifies the start and end of a
document.
|
static String |
PAGE_NUM_TAG
The string constant that specifies the page number of a page.
|
static String |
PAGE_TAG
The string constant that specifies the start and end of a sheet
in a document.
|
static String |
PAGE_TITLE_TAG
The string constant that specifies the title attribute of a
page.
|
static String |
PUBLIC_ID
The public identity of the sketch dtd file.
|
static String |
TITLE_TAG
The string constant that specifies the title attribute of a
document.
|
| Constructor and Description |
|---|
MultipageParser(ModelParser pageParser)
Create a MultipageParser with the specified model parser which
is used to parse the content of a page.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attribute(String name,
String value,
boolean isSpecified)
Handle an attribute value assignment.
|
void |
charData(char[] chars,
int offset,
int length)
Handle character data.
|
void |
endElement(String name)
Handle the end of an element.
|
void |
parse(Reader reader,
MultipageModel multi)
Parse the file (from reader) into the given multipage data structure.
|
Object |
resolveEntity(String publicID,
String systemID)
Resolve an external entity.
|
void |
startElement(String name)
Handle the start of an element.
|
doctypeDecl, endDocument, endExternalEntity, error, ignorableWhitespace, processingInstruction, startDocument, startExternalEntitypublic static final String PUBLIC_ID
public static final String DTD_URL
public static final String DTD_1
public static final String TITLE_TAG
public static final String MULTIPAGE_TAG
public static final String PAGE_TAG
public static final String PAGE_TITLE_TAG
public static final String PAGE_NUM_TAG
public MultipageParser(ModelParser pageParser)
public void attribute(String name, String value, boolean isSpecified) throws Exception
attribute in interface XmlHandlerattribute in class HandlerBasevalue - The value of the attribute, or null if the attribute
is #IMPLIED.isSpecified - True if the value was specified, false if it
was defaulted from the DTD.Exception - The handler may throw any exception.com.microstar.xml.XmlHandler#attributepublic void charData(char[] chars,
int offset,
int length)
throws Exception
charData in interface XmlHandlercharData in class HandlerBasechars - The character data.offset - The starting position in the array.length - The number of characters available.Exception - The handler may throw any exception.XmlHandler.charData(char[], int, int)public void endElement(String name) throws Exception
endElement in interface XmlHandlerendElement in class HandlerBasename - The element type name.Exception - The handler may throw any exception.XmlHandler.endElement(java.lang.String)public void startElement(String name) throws Exception
startElement in interface XmlHandlerstartElement in class HandlerBasename - The element type name.Exception - The handler may throw any exception.XmlHandler.startElement(java.lang.String)public Object resolveEntity(String publicID, String systemID)
resolveEntity in interface XmlHandlerresolveEntity in class HandlerBasepublicId - The public identifier, or null if none was supplied.systemId - The system identifier.XmlHandler.resolveEntity(java.lang.String, java.lang.String)public void parse(Reader reader, MultipageModel multi) throws Exception
ExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.