Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl

public Class XML11DTDScannerImpl

extends XMLDTDScannerImpl
Class Inheritance
Imports
java.io.IOException, com.sun.org.apache.xerces.internal.util.SymbolTable, .XML11Char, .XMLChar, .XMLStringBuffer, com.sun.org.apache.xerces.internal.xni.XMLString, .XNIException

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:

Authors
Arnaud Le Hors, IBM, Andy Clark, IBM, Glenn Marcy, IBM, Eric Ye, IBM

Field Summary

Modifier and TypeField and Description
private XMLStringBuffer
Inherited from com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl:
fDTDContentModelHandlerfDTDHandlerfScannerStatefSeenExternalDTDfSeenExternalPEfStandalonenonValidatingModenvGrammarInfoSCANNER_STATE_END_OF_INPUTSCANNER_STATE_MARKUP_DECLSCANNER_STATE_TEXT_DECL

Constructor Summary

AccessConstructor and Description
public
XML11DTDScannerImpl()

Default constructor.

public
XML11DTDScannerImpl(SymbolTable symbolTable, XMLErrorReporter errorReporter, XMLEntityManager entityManager)

Constructor for he use of non-XMLComponentManagers.

Method Summary

Modifier and TypeMethod and Description
protected String
protected boolean
protected boolean
protected int

Returns:

-1 if the value would be unchanged by normalization, otherwise the index of the first whitespace character which would be transformed.
isUnchangedByNormalization
(XMLString value)

Checks whether this string would be unchanged by normalization.

protected boolean
protected boolean
protected boolean
protected boolean
protected void
normalizeWhitespace(XMLString value)

Overrides com.sun.org.apache.xerces.internal.impl.XMLScanner.normalizeWhitespace.

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

Returns:

True on success

Note

This method uses fStringBuffer, anything in it at the time of calling is lost.

scanPubidLiteral
(XMLString
The string to fill in with the public ID literal.
literal
)

Overrides com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPubidLiteral.

Scans public ID literal.

protected boolean
Inherited from com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl:
endEntitygetDTDContentModelHandlergetDTDHandlergetFeatureDefaultgetGrammargetPropertyDefaultgetRecognizedFeaturesgetRecognizedPropertiesresetresetresetscanAttDefaultDeclscanAttlistDeclscanCommentscanDeclsscanDTDExternalSubsetscanDTDInternalSubsetscanElementDeclscanEntityValuescanningInternalSubsetscanPIDatascanTextDeclsetDTDContentModelHandlersetDTDHandlersetInputSourcesetLimitAnalyzersetScannerStateskipDTDstartEntitystartPE

Field Detail

fStringBufferback to summary
private XMLStringBuffer fStringBuffer

Hides com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.fStringBuffer.

String buffer.

Constructor Detail

XML11DTDScannerImplback to summary
public XML11DTDScannerImpl()

Default constructor.

XML11DTDScannerImplback to summary
public XML11DTDScannerImpl(SymbolTable symbolTable, XMLErrorReporter errorReporter, XMLEntityManager entityManager)

Constructor for he use of non-XMLComponentManagers.

Method Detail

getVersionNotSupportedKeyback to summary
protected String getVersionNotSupportedKey()
isInvalidback to summary
protected boolean isInvalid(int value)

Overrides com.sun.org.apache.xerces.internal.impl.XMLScanner.isInvalid.

isInvalidLiteralback to summary
protected boolean isInvalidLiteral(int value)

Overrides com.sun.org.apache.xerces.internal.impl.XMLScanner.isInvalidLiteral.

isUnchangedByNormalizationback to summary
protected int isUnchangedByNormalization(XMLString value)

Checks whether this string would be unchanged by normalization.

Returns:int

-1 if the value would be unchanged by normalization, otherwise the index of the first whitespace character which would be transformed.

isValidNameCharback to summary
protected boolean isValidNameChar(int value)

Overrides com.sun.org.apache.xerces.internal.impl.XMLScanner.isValidNameChar.

isValidNameStartCharback to summary
protected boolean isValidNameStartChar(int value)

Overrides com.sun.org.apache.xerces.internal.impl.XMLScanner.isValidNameStartChar.

isValidNameStartHighSurrogateback to summary
protected boolean isValidNameStartHighSurrogate(int value)

Overrides com.sun.org.apache.xerces.internal.impl.XMLScanner.isValidNameStartHighSurrogate.

isValidNCNameback to summary
protected boolean isValidNCName(int value)

Overrides com.sun.org.apache.xerces.internal.impl.XMLScanner.isValidNCName.

normalizeWhitespaceback to summary
protected void normalizeWhitespace(XMLString value)

Overrides com.sun.org.apache.xerces.internal.impl.XMLScanner.normalizeWhitespace.

Normalize whitespace in an XMLString converting all whitespace characters to space characters.

normalizeWhitespaceback to summary
protected void normalizeWhitespace(XMLString value, int fromIndex)

Normalize whitespace in an XMLString converting all whitespace characters to space characters.

scanPubidLiteralback to summary
protected boolean scanPubidLiteral(XMLString literal) throws IOException, XNIException

Overrides com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPubidLiteral.

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.

Parameters
literal:XMLString

The string to fill in with the public ID literal.

Returns:boolean

True on success

Note

This method uses fStringBuffer, anything in it at the time of calling is lost.

versionSupportedback to summary
protected boolean versionSupported(String version)

Overrides com.sun.org.apache.xerces.internal.impl.XMLScanner.versionSupported.