Top Description Fields Constructors Methods
org.apache.xerces.impl

public Class XML11DTDScannerImpl

extends XMLDTDScannerImpl
Class Inheritance
Imports
java.io.IOException, org.apache.xerces.util.SymbolTable, .XML11Char, .XMLChar, .XMLStringBuffer, org.apache.xerces.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
Version
$Id: XML11DTDScannerImpl.java 572055 2007-09-02 17:55:43Z mrglavas $

Field Summary

Modifier and TypeField and Description
private final XMLStringBuffer
Inherited from org.apache.xerces.impl.XMLDTDScannerImpl:
fDTDContentModelHandlerfDTDHandlerfScannerStatefSeenExternalDTDfSeenPEReferencesfStandaloneSCANNER_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)

Overrides org.apache.xerces.impl.XMLScanner.isUnchangedByNormalization.

Checks whether this string would be unchanged by normalization.
protected boolean
protected boolean
protected boolean
protected boolean
protected void
normalizeWhitespace(XMLString value)

Overrides org.apache.xerces.impl.XMLScanner.normalizeWhitespace.

Normalize whitespace in an XMLString converting all whitespace characters to space characters.
protected void
normalizeWhitespace(XMLString value, int fromIndex)

Overrides org.apache.xerces.impl.XMLScanner.normalizeWhitespace.

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 org.apache.xerces.impl.XMLScanner.scanPubidLiteral.

Scans public ID literal.
protected boolean
Inherited from org.apache.xerces.impl.XMLDTDScannerImpl:
endEntitygetDTDContentModelHandlergetDTDHandlergetFeatureDefaultgetPropertyDefaultgetRecognizedFeaturesgetRecognizedPropertiesresetresetscanAttDefaultDeclscanAttlistDeclscanCommentscanDeclsscanDTDExternalSubsetscanDTDInternalSubsetscanElementDeclscanEntityValuescanningInternalSubsetscanPIDatascanTextDeclsetDTDContentModelHandlersetDTDHandlersetInputSourcesetScannerStatestartEntitystartPE

Field Detail

fStringBufferback to summary
private final XMLStringBuffer fStringBuffer

Hides org.apache.xerces.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()

Overrides org.apache.xerces.impl.XMLScanner.getVersionNotSupportedKey.

isInvalidback to summary
protected boolean isInvalid(int value)

Overrides org.apache.xerces.impl.XMLScanner.isInvalid.

isInvalidLiteralback to summary
protected boolean isInvalidLiteral(int value)

Overrides org.apache.xerces.impl.XMLScanner.isInvalidLiteral.

isUnchangedByNormalizationback to summary
protected int isUnchangedByNormalization(XMLString value)

Overrides org.apache.xerces.impl.XMLScanner.isUnchangedByNormalization.

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 org.apache.xerces.impl.XMLScanner.isValidNameChar.

isValidNameStartCharback to summary
protected boolean isValidNameStartChar(int value)

Overrides org.apache.xerces.impl.XMLScanner.isValidNameStartChar.

isValidNameStartHighSurrogateback to summary
protected boolean isValidNameStartHighSurrogate(int value)

Overrides org.apache.xerces.impl.XMLScanner.isValidNameStartHighSurrogate.

isValidNCNameback to summary
protected boolean isValidNCName(int value)

Overrides org.apache.xerces.impl.XMLScanner.isValidNCName.

normalizeWhitespaceback to summary
protected void normalizeWhitespace(XMLString value)

Overrides org.apache.xerces.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)

Overrides org.apache.xerces.impl.XMLScanner.normalizeWhitespace.

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

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

Overrides org.apache.xerces.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 org.apache.xerces.impl.XMLScanner.versionSupported.