|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.apache.xerces.impl.XMLScanner
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl
weblogic.apache.xerces.impl.XMLDocumentScannerImpl
weblogic.apache.xerces.impl.XML11DocumentScannerImpl
public class XML11DocumentScannerImpl
This class is responsible for scanning XML document structure and content. The scanner acts as the source for the document information which is communicated to the document handler.
This component requires the following features and properties from the component manager that uses it:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class weblogic.apache.xerces.impl.XMLDocumentScannerImpl |
---|
XMLDocumentScannerImpl.ContentDispatcher, XMLDocumentScannerImpl.DTDDispatcher, XMLDocumentScannerImpl.PrologDispatcher, XMLDocumentScannerImpl.TrailingMiscDispatcher, XMLDocumentScannerImpl.XMLDeclDispatcher |
Nested classes/interfaces inherited from class weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl |
---|
XMLDocumentFragmentScannerImpl.Dispatcher, XMLDocumentFragmentScannerImpl.ElementStack, XMLDocumentFragmentScannerImpl.FragmentContentDispatcher |
Field Summary |
---|
Fields inherited from class weblogic.apache.xerces.impl.XMLScanner |
---|
DEBUG_ATTR_NORMALIZATION, ENTITY_MANAGER, ERROR_REPORTER, fAmpSymbol, fAposSymbol, fCharRefLiteral, fEncodingSymbol, fEntityDepth, fEntityManager, fEntityScanner, fErrorReporter, fGtSymbol, fLtSymbol, fNotifyCharRefs, fQuotSymbol, fReportEntity, fResourceIdentifier, fScanningAttribute, fStandaloneSymbol, fSymbolTable, fValidation, fVersionSymbol, NOTIFY_CHAR_REFS, SYMBOL_TABLE, VALIDATION |
Constructor Summary | |
---|---|
XML11DocumentScannerImpl()
Deprecated. Default constructor. |
Method Summary | |
---|---|
protected void |
normalizeWhitespace(XMLString value)
Deprecated. Normalize whitespace in an XMLString converting all whitespace characters to space characters. |
protected void |
scanAttributeValue(XMLString value,
XMLString nonNormalizedValue,
String atName,
XMLAttributes attributes,
int attrIndex,
boolean checkEntities)
Deprecated. Scans an attribute value and normalizes whitespace converting all whitespace characters to space characters. |
protected int |
scanContent()
Deprecated. Scans element content. |
protected boolean |
scanPubidLiteral(XMLString literal)
Deprecated. Scans public ID literal. |
protected void |
scanXMLDeclOrTextDecl(boolean scanningTextDecl,
String[] pseudoAttributeValues)
Deprecated. Scans an XML or text declaration. |
Methods inherited from class weblogic.apache.xerces.impl.XMLDocumentScannerImpl |
---|
createContentDispatcher, endEntity, getRecognizedFeatures, getRecognizedProperties, getScannerStateName, reset, scanDoctypeDecl, setFeature, setInputSource, setProperty, startEntity |
Methods inherited from class weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl |
---|
getDispatcherName, getDocumentHandler, handleEndElement, scanAttribute, scanCDATASection, scanCharReference, scanComment, scanDocument, scanEndElement, scanEntityReference, scanPIData, scanStartElement, scanXMLDeclOrTextDecl, setDispatcher, setDocumentHandler, setScannerState |
Methods inherited from class weblogic.apache.xerces.impl.XMLScanner |
---|
getFeature, reportFatalError, reset, scanCharReferenceValue, scanComment, scanExternalID, scanPI, scanPseudoAttribute, scanSurrogates |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XML11DocumentScannerImpl()
Method Detail |
---|
protected int scanContent() throws IOException, XNIException
scanContent
in class XMLDocumentFragmentScannerImpl
IOException
XNIException
protected void scanXMLDeclOrTextDecl(boolean scanningTextDecl, String[] pseudoAttributeValues) throws IOException, XNIException
[23] XMLDecl ::= '' [24] VersionInfo ::= S 'version' Eq (' VersionNum ' | " VersionNum ") [80] EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' | "'" EncName "'" ) [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')* [32] SDDecl ::= S 'standalone' Eq (("'" ('yes' | 'no') "'") | ('"' ('yes' | 'no') '"')) [77] TextDecl ::= ''
this was overridden to allow for version="1.1"
scanXMLDeclOrTextDecl
in class XMLScanner
scanningTextDecl
- True if a text declaration is to
be scanned instead of an XML
declaration.pseudoAttributeValues
- An array of size 3 to return the version,
encoding and standalone pseudo attribute values
(in that order).
Note: This method uses fString, anything in it
at the time of calling is lost.
IOException
XNIException
protected void scanAttributeValue(XMLString value, XMLString nonNormalizedValue, String atName, XMLAttributes attributes, int attrIndex, boolean checkEntities) throws IOException, XNIException
scanAttributeValue
in class XMLScanner
value
- The XMLString to fill in with the value.nonNormalizedValue
- The XMLString to fill in with the
non-normalized value.atName
- The name of the attribute being parsed (for error msgs).attributes
- The attributes list for the scanned attribute.attrIndex
- The index of the attribute to use from the list.checkEntities
- true if undeclared entities should be reported as VC violation,
false if undeclared entities should be reported as WFC violation.
Note: This method uses fStringBuffer2, anything in it
at the time of calling is lost.
IOException
XNIException
protected boolean scanPubidLiteral(XMLString literal) throws IOException, XNIException
scanPubidLiteral
in class XMLScanner
literal
- The string to fill in with the public ID literal.
IOException
XNIException
protected void normalizeWhitespace(XMLString value)
normalizeWhitespace
in class XMLScanner
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs92 Copyright 2006 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |