org.w3c.tools.resources.serialization.xml
Class XMLReader
java.lang.Object
org.xml.sax.HandlerBase
org.w3c.tools.resources.serialization.xml.XMLReader
- All Implemented Interfaces:
- JigXML, org.xml.sax.DocumentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
public class XMLReader
- extends org.xml.sax.HandlerBase
- implements JigXML
Fields inherited from interface org.w3c.tools.resources.serialization.xml.JigXML |
ARRAY_TAG, ATTRIBUTE_TAG, CHILD_TAG, CHILDREN_TAG, CLASS_ATTR, DESCR_TAG, dtd, FLAG_ATTR, iARRAY_TAG, iATTRIBUTE_TAG, iCHILD_TAG, iCHILDREN_TAG, iCLASS_ATTR, iDESCR_TAG, idtd, iFLAG_ATTR, iIMPLEMENTS_TAG, iINHERIT_TAG, iJXML_TAG, iLENGTH_ATTR, IMPLEMENTS_TAG, iNAME_ATTR, INHERIT_TAG, ins, iNULL, iRESARRAY_TAG, iRESOURCE_TAG, iVALUE_TAG, iversion, JXML_TAG, LENGTH_ATTR, NAME_ATTR, ns, NULL, RESARRAY_TAG, RESOURCE_TAG, VALUE_TAG, version |
Constructor Summary |
XMLReader(java.io.Reader reader,
org.xml.sax.Parser parser)
|
Methods inherited from class org.xml.sax.HandlerBase |
ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLReader
public XMLReader(java.io.Reader reader,
org.xml.sax.Parser parser)
startElement
public void startElement(java.lang.String name,
org.xml.sax.AttributeList attributes)
throws org.xml.sax.SAXException
- Specified by:
startElement
in interface org.xml.sax.DocumentHandler
- Overrides:
startElement
in class org.xml.sax.HandlerBase
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String name)
throws org.xml.sax.SAXException
- Specified by:
endElement
in interface org.xml.sax.DocumentHandler
- Overrides:
endElement
in class org.xml.sax.HandlerBase
- Throws:
org.xml.sax.SAXException
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- Specified by:
startDocument
in interface org.xml.sax.DocumentHandler
- Overrides:
startDocument
in class org.xml.sax.HandlerBase
- Throws:
org.xml.sax.SAXException
endDocument
public void endDocument()
throws org.xml.sax.SAXException
- Specified by:
endDocument
in interface org.xml.sax.DocumentHandler
- Overrides:
endDocument
in class org.xml.sax.HandlerBase
- Throws:
org.xml.sax.SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Specified by:
characters
in interface org.xml.sax.DocumentHandler
- Overrides:
characters
in class org.xml.sax.HandlerBase
- Throws:
org.xml.sax.SAXException
warning
public void warning(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
- Specified by:
warning
in interface org.xml.sax.ErrorHandler
- Overrides:
warning
in class org.xml.sax.HandlerBase
- Throws:
org.xml.sax.SAXException
error
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
- Specified by:
error
in interface org.xml.sax.ErrorHandler
- Overrides:
error
in class org.xml.sax.HandlerBase
- Throws:
org.xml.sax.SAXException
fatalError
public void fatalError(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
- Specified by:
fatalError
in interface org.xml.sax.ErrorHandler
- Overrides:
fatalError
in class org.xml.sax.HandlerBase
- Throws:
org.xml.sax.SAXException
parse
protected void parse()
throws org.xml.sax.SAXException,
java.io.IOException
- Throws:
org.xml.sax.SAXException
java.io.IOException
readResources
public Resource[] readResources()
throws java.io.IOException,
SerializationException
- Throws:
java.io.IOException
SerializationException
readAttributeHolders
public AttributeHolder[] readAttributeHolders()
throws java.io.IOException,
SerializationException
- Throws:
java.io.IOException
SerializationException