Save This Page
Home » Xerces-J-src.2.9.1 » sax » [javadoc | source]
sax
public class: DocumentTracer [javadoc | source]
java.lang.Object
   org.xml.sax.helpers.DefaultHandler
      sax.DocumentTracer

All Implemented Interfaces:
    ContentHandler, DTDHandler, ErrorHandler, DocumentHandler, DeclHandler, LexicalHandler, EntityResolver

Provides a complete trace of SAX2 events for files parsed. This is useful for making sure that a SAX parser implementation faithfully communicates all information in the document to the SAX handlers.
Field Summary
protected static final  String NAMESPACES_FEATURE_ID    Namespaces feature id (http://xml.org/sax/features/namespaces). 
protected static final  String NAMESPACE_PREFIXES_FEATURE_ID    Namespace prefixes feature id (http://xml.org/sax/features/namespace-prefixes). 
protected static final  String VALIDATION_FEATURE_ID    Validation feature id (http://xml.org/sax/features/validation). 
protected static final  String SCHEMA_VALIDATION_FEATURE_ID    Schema validation feature id (http://apache.org/xml/features/validation/schema). 
protected static final  String SCHEMA_FULL_CHECKING_FEATURE_ID    Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking). 
protected static final  String HONOUR_ALL_SCHEMA_LOCATIONS_ID    Honour all schema locations feature id (http://apache.org/xml/features/honour-all-schemaLocations). 
protected static final  String VALIDATE_ANNOTATIONS_ID    Validate schema annotations feature id (http://apache.org/xml/features/validate-annotations) 
protected static final  String DYNAMIC_VALIDATION_FEATURE_ID    Dynamic validation feature id (http://apache.org/xml/features/validation/dynamic). 
protected static final  String LOAD_EXTERNAL_DTD_FEATURE_ID    Load external DTD feature id (http://apache.org/xml/features/nonvalidating/load-external-dtd). 
protected static final  String XINCLUDE_FEATURE_ID    XInclude feature id (http://apache.org/xml/features/xinclude). 
protected static final  String XINCLUDE_FIXUP_BASE_URIS_FEATURE_ID    XInclude fixup base URIs feature id (http://apache.org/xml/features/xinclude/fixup-base-uris). 
protected static final  String XINCLUDE_FIXUP_LANGUAGE_FEATURE_ID    XInclude fixup language feature id (http://apache.org/xml/features/xinclude/fixup-language). 
protected static final  String LEXICAL_HANDLER_PROPERTY_ID    Lexical handler property id (http://xml.org/sax/properties/lexical-handler). 
protected static final  String DEFAULT_PARSER_NAME    Default parser name. 
protected static final  boolean DEFAULT_NAMESPACES    Default namespaces support (true). 
protected static final  boolean DEFAULT_NAMESPACE_PREFIXES    Default namespace prefixes (false). 
protected static final  boolean DEFAULT_VALIDATION    Default validation support (false). 
protected static final  boolean DEFAULT_LOAD_EXTERNAL_DTD    Default load external DTD (true). 
protected static final  boolean DEFAULT_SCHEMA_VALIDATION    Default Schema validation support (false). 
protected static final  boolean DEFAULT_SCHEMA_FULL_CHECKING    Default Schema full checking support (false). 
protected static final  boolean DEFAULT_HONOUR_ALL_SCHEMA_LOCATIONS    Default honour all schema locations (false). 
protected static final  boolean DEFAULT_VALIDATE_ANNOTATIONS    Default validate schema annotations (false). 
protected static final  boolean DEFAULT_DYNAMIC_VALIDATION    Default dynamic validation support (false). 
protected static final  boolean DEFAULT_XINCLUDE    Default XInclude processing support (false). 
protected static final  boolean DEFAULT_XINCLUDE_FIXUP_BASE_URIS    Default XInclude fixup base URIs support (true). 
protected static final  boolean DEFAULT_XINCLUDE_FIXUP_LANGUAGE    Default XInclude fixup language support (true). 
protected  PrintWriter fOut    Print writer. 
protected  int fIndent    Indent level. 
Constructor:
 public DocumentTracer() 
Method from sax.DocumentTracer Summary:
attributeDecl,   characters,   comment,   elementDecl,   endCDATA,   endDTD,   endDocument,   endElement,   endElement,   endEntity,   endPrefixMapping,   error,   externalEntityDecl,   fatalError,   ignorableWhitespace,   internalEntityDecl,   main,   normalizeAndPrint,   notationDecl,   printError,   printIndent,   printQuotedString,   printQuotedString,   processingInstruction,   setDocumentLocator,   setOutput,   setOutput,   skippedEntity,   startCDATA,   startDTD,   startDocument,   startElement,   startElement,   startEntity,   startPrefixMapping,   unparsedEntityDecl,   warning
Methods from org.xml.sax.helpers.DefaultHandler:
characters,   endDocument,   endElement,   endPrefixMapping,   error,   fatalError,   ignorableWhitespace,   notationDecl,   processingInstruction,   resolveEntity,   setDocumentLocator,   skippedEntity,   startDocument,   startElement,   startPrefixMapping,   unparsedEntityDecl,   warning
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sax.DocumentTracer Detail:
 public  void attributeDecl(String elementName,
    String attributeName,
    String type,
    String valueDefault,
    String value) throws SAXException 
    Attribute declaration.
 public  void characters(char[] ch,
    int offset,
    int length) throws SAXException 
    Characters.
 public  void comment(char[] ch,
    int offset,
    int length) throws SAXException 
    Comment.
 public  void elementDecl(String name,
    String contentModel) throws SAXException 
    Element declaration.
 public  void endCDATA() throws SAXException 
    End CDATA section.
 public  void endDTD() throws SAXException 
    End DTD.
 public  void endDocument() throws SAXException 
    End document.
 public  void endElement(String name) throws SAXException 
    End element.
 public  void endElement(String uri,
    String localName,
    String qname) throws SAXException 
    End element.
 public  void endEntity(String name) throws SAXException 
    End entity.
 public  void endPrefixMapping(String prefix) throws SAXException 
    End prefix mapping.
 public  void error(SAXParseException ex) throws SAXException 
    Error.
 public  void externalEntityDecl(String name,
    String publicId,
    String systemId) throws SAXException 
    External entity declaration.
 public  void fatalError(SAXParseException ex) throws SAXException 
    Fatal error.
 public  void ignorableWhitespace(char[] ch,
    int offset,
    int length) throws SAXException 
    Ignorable whitespace.
 public  void internalEntityDecl(String name,
    String text) throws SAXException 
    Internal entity declaration.
 public static  void main(String[] argv) throws Exception 
    Main.
 protected  void normalizeAndPrint(char c) 
    Normalize and print.
 public  void notationDecl(String name,
    String publicId,
    String systemId) throws SAXException 
    Notation declaration.
 protected  void printError(String type,
    SAXParseException ex) 
    Prints the error message.
 protected  void printIndent() 
    Prints the indent.
 protected  void printQuotedString(String s) 
    Print quoted string.
 protected  void printQuotedString(char[] ch,
    int offset,
    int length) 
    Print quoted string.
 public  void processingInstruction(String target,
    String data) throws SAXException 
    Processing instruction.
 public  void setDocumentLocator(Locator locator) 
    Set document locator.
 public  void setOutput(Writer writer) 
    Sets the output writer.
 public  void setOutput(OutputStream stream,
    String encoding) throws UnsupportedEncodingException 
    Sets the output stream for printing.
 public  void skippedEntity(String name) throws SAXException 
    Skipped entity.
 public  void startCDATA() throws SAXException 
    Start CDATA section.
 public  void startDTD(String name,
    String publicId,
    String systemId) throws SAXException 
    Start DTD.
 public  void startDocument() throws SAXException 
    Start document.
 public  void startElement(String name,
    AttributeList attributes) throws SAXException 
    Start element.
 public  void startElement(String uri,
    String localName,
    String qname,
    Attributes attributes) throws SAXException 
    Start element.
 public  void startEntity(String name) throws SAXException 
    Start entity.
 public  void startPrefixMapping(String prefix,
    String uri) throws SAXException 
    Start prefix mapping.
 public  void unparsedEntityDecl(String name,
    String publicId,
    String systemId,
    String notationName) throws SAXException 
    Unparsed entity declaration.
 public  void warning(SAXParseException ex) throws SAXException 
    Warning.