Save This Page
Home » Xerces-J-src.2.9.1 » org.apache.xerces » impl » [javadoc | source]
org.apache.xerces.impl
public class: XML11DTDScannerImpl [javadoc | source]
java.lang.Object
   org.apache.xerces.impl.XMLScanner
      org.apache.xerces.impl.XMLDTDScannerImpl
         org.apache.xerces.impl.XML11DTDScannerImpl

All Implemented Interfaces:
    XMLDTDScanner, XMLComponent, XMLEntityHandler

This class is responsible for scanning the declarations found in the internal and external subsets of a DTD in an XML document. The scanner acts as the sources for the DTD information which is communicated to the DTD handlers.

This component requires the following features and properties from the component manager that uses it:

Fields inherited from org.apache.xerces.impl.XMLDTDScannerImpl:
SCANNER_STATE_END_OF_INPUT,  SCANNER_STATE_TEXT_DECL,  SCANNER_STATE_MARKUP_DECL,  fDTDHandler,  fDTDContentModelHandler,  fScannerState,  fStandalone,  fSeenExternalDTD,  fSeenPEReferences
Fields inherited from org.apache.xerces.impl.XMLScanner:
VALIDATION,  NAMESPACES,  NOTIFY_CHAR_REFS,  PARSER_SETTINGS,  SYMBOL_TABLE,  ERROR_REPORTER,  ENTITY_MANAGER,  DEBUG_ATTR_NORMALIZATION,  fValidation,  fNamespaces,  fNotifyCharRefs,  fParserSettings,  fSymbolTable,  fErrorReporter,  fEntityManager,  fEntityScanner,  fEntityDepth,  fCharRefLiteral,  fScanningAttribute,  fReportEntity,  fVersionSymbol,  fEncodingSymbol,  fStandaloneSymbol,  fAmpSymbol,  fLtSymbol,  fGtSymbol,  fQuotSymbol,  fAposSymbol,  fResourceIdentifier
Constructor:
 public XML11DTDScannerImpl() 
 public XML11DTDScannerImpl(SymbolTable symbolTable,
    XMLErrorReporter errorReporter,
    XMLEntityManager entityManager) 
    Constructor for he use of non-XMLComponentManagers.
Method from org.apache.xerces.impl.XML11DTDScannerImpl Summary:
getVersionNotSupportedKey,   isInvalid,   isInvalidLiteral,   isUnchangedByNormalization,   isValidNCName,   isValidNameChar,   isValidNameStartChar,   isValidNameStartHighSurrogate,   normalizeWhitespace,   normalizeWhitespace,   scanPubidLiteral,   versionSupported
Methods from org.apache.xerces.impl.XMLDTDScannerImpl:
endEntity,   getDTDContentModelHandler,   getDTDHandler,   getFeatureDefault,   getPropertyDefault,   getRecognizedFeatures,   getRecognizedProperties,   reset,   reset,   scanAttDefaultDecl,   scanAttlistDecl,   scanComment,   scanDTDExternalSubset,   scanDTDInternalSubset,   scanDecls,   scanElementDecl,   scanEntityValue,   scanPIData,   scanTextDecl,   scanningInternalSubset,   setDTDContentModelHandler,   setDTDHandler,   setInputSource,   setScannerState,   startEntity,   startPE
Methods from org.apache.xerces.impl.XMLScanner:
endEntity,   getFeature,   getVersionNotSupportedKey,   isInvalid,   isInvalidLiteral,   isUnchangedByNormalization,   isValidNCName,   isValidNameChar,   isValidNameStartChar,   isValidNameStartHighSurrogate,   normalizeWhitespace,   normalizeWhitespace,   reportFatalError,   reset,   reset,   scanAttributeValue,   scanCharReferenceValue,   scanComment,   scanExternalID,   scanPI,   scanPIData,   scanPseudoAttribute,   scanPubidLiteral,   scanSurrogates,   scanXMLDeclOrTextDecl,   setFeature,   setProperty,   startEntity,   versionSupported
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xerces.impl.XML11DTDScannerImpl Detail:
 protected String getVersionNotSupportedKey() 
 protected boolean isInvalid(int value) 
 protected boolean isInvalidLiteral(int value) 
 protected int isUnchangedByNormalization(XMLString value) 
    Checks whether this string would be unchanged by normalization.
 protected boolean isValidNCName(int value) 
 protected boolean isValidNameChar(int value) 
 protected boolean isValidNameStartChar(int value) 
 protected boolean isValidNameStartHighSurrogate(int value) 
 protected  void normalizeWhitespace(XMLString value) 
    Normalize whitespace in an XMLString converting all whitespace characters to space characters.
 protected  void normalizeWhitespace(XMLString value,
    int fromIndex) 
    Normalize whitespace in an XMLString converting all whitespace characters to space characters.
 protected boolean scanPubidLiteral(XMLString literal) throws IOException, XNIException 
    Scans public ID literal. [12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'" [13] PubidChar::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%] The returned string is normalized according to the following rule, from http://www.w3.org/TR/REC-xml#dt-pubid: Before a match is attempted, all strings of white space in the public identifier must be normalized to single space characters (#x20), and leading and trailing white space must be removed.
 protected boolean versionSupported(String version)