C# Class System.Xml.XmlTextReaderImpl

Inheritance: XmlReader, IXmlLineInfo, IXmlNamespaceResolver
Mostrar archivo Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
AddAttribute NodeData
AddAttribute NodeData
AddAttributeChunkToList void
AddAttributeNoChecks NodeData
AddDefaultAttributeDtd bool
AddDefaultAttributeInternal NodeData
AddDefaultAttributeNonDtd bool
AddDefaultAttributesAndNormalize void
AddNamespace void
AddNode NodeData
AdjustLineInfo void
AdjustLineInfo void
AdjustLineInfo void
AllocNode NodeData
AttributeDuplCheck void
AttributeNamespaceLookup void
BlockCopy void
BlockCopyChars void
ChangeCurrentNodeType void
CheckEncoding System.Text.Encoding
Close void
DetectEncoding System.Text.Encoding
DtdParserProxy_OnNewLine void
DtdParserProxy_OnPublicId void
DtdParserProxy_OnSystemId void
DtdParserProxy_ParseComment void
DtdParserProxy_ParseNamedCharRef int
DtdParserProxy_ParseNumericCharRef int
DtdParserProxy_ParsePI void
DtdParserProxy_PopEntity bool
DtdParserProxy_PushEntity bool
DtdParserProxy_PushExternalSubset bool
DtdParserProxy_PushInternalDtd void
DtdParserProxy_ReadData int
DtdParserProxy_Throw void
EatWhitespaces int
ElementNamespaceLookup void
FinishAttributeValueIterator void
FinishIncrementalRead void
FinishInit void
FinishInitStream void
FinishInitTextReader void
FinishInitUriString void
FinishOtherValueIterator void
FinishPartialValue void
FinishReadContentAsBinary void
FinishReadElementContentAsBinary void
FinishReadValueChunk void
FullAttributeCleanup void
GetChars int
GetIndexOfAttributeWithPrefix int
GetIndexOfAttributeWithoutPrefix int
GetNamespacesInScope string>.IDictionary
GetRemainder TextReader
GetResolver XmlResolver
GetTempResolver XmlResolver
GetTextNodeType System.Xml.XmlNodeType
GetWhitespaceType System.Xml.XmlNodeType
HandleEntityEnd bool
HandleEntityReference EntityType
HandleGeneralEntityReference EntityType
IXmlNamespaceResolver string>.IDictionary
IXmlNamespaceResolver string
IncrementalRead int
IncrementalRead int
InitBase64Decoder void
InitBinHexDecoder void
InitFragmentReader void
InitIncrementalRead void
InitReadContentAsBinary bool
InitReadElementContentAsBinary bool
InitStreamInput void
InitStreamInput void
InitStreamInput void
InitStreamInput void
InitStreamInput void
InitStringInput void
InitTextReaderInput void
InitTextReaderInput void
InvalidCharRecovery void
LookupNamespace string
LookupPrefix string
MoveOffEntityReference void
MoveToNextContentNode bool
OnDefaultNamespaceDecl void
OnEof void
OnNamespaceDecl void
OnNewLine void
OnXmlReservedAttribute void
OpenAndPush bool
OpenUrl void
OpenUrlDelegate void
ParseAttributeValueChunk bool
ParseAttributeValueSlow void
ParseAttributes void
ParseCData void
ParseCDataOrComment bool
ParseCDataOrComment void
ParseCharRefInline int
ParseComment bool
ParseDoctypeDecl bool
ParseDocumentContent bool
ParseDtd void
ParseDtdFromParserContext void
ParseElement void
ParseElementContent bool
ParseEndElement void
ParseEntityName string
ParseEntityReference void
ParseFragmentAttribute bool
ParseName int
ParseNamedCharRef int
ParseNamedCharRefInline int
ParseNumericCharRef int
ParseNumericCharRefInline int
ParsePI bool
ParsePI bool
ParsePIValue bool
ParseQName int
ParseQName int
ParseRootLevelWhitespace bool
ParseText bool
ParseText bool
ParseUnexpectedToken string
ParseUnexpectedToken string
ParseXmlDeclaration bool
ParseXmlDeclarationFragment void
PopElementContext void
PopEntity void
PopParsingState void
PopXmlContext void
ProcessDtdFromParserContext void
PushExternalEntity bool
PushExternalEntityOrSubset void
PushInternalEntity void
PushParsingState void
PushXmlContext void
ReThrow void
ReadBase64 int
ReadBinHex int
ReadChars int
ReadContentAsBinary int
ReadData int
ReadDataInName bool
ReadElementContentAsBinary int
RegisterConsumedCharacters void
RegisterEntity void
ResetAttributes void
ResetState void
SendValidationEvent void
SendValidationEvent void
SetDtdInfo void
SetErrorState void
SetupEncoding void
SetupEndEntityNodeInAttribute void
SetupEndEntityNodeInContent void
SetupFromParserContext void
SetupReadContentAsBinaryState void
ShiftBuffer void
SkipDtd void
SkipPartialTextValue void
SkipPublicOrSystemIdLiteral void
SkipUntil void
StripSpaces string
StripSpaces void
SwitchEncoding void
SwitchEncodingToUTF8 void
Throw void
Throw void
Throw void
Throw void
Throw void
Throw void
Throw void
Throw void
ThrowExpectingWhitespace void
ThrowInvalidChar void
ThrowTagMismatch void
ThrowUnclosedElements void
ThrowUnexpectedToken void
ThrowUnexpectedToken void
ThrowUnexpectedToken void
ThrowUnexpectedToken void
ThrowWithoutLineInfo void
ThrowWithoutLineInfo void
ThrowWithoutLineInfo void
UnDecodeChars void
UnregisterEntity void
UriEqual bool
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
XmlTextReaderImpl System.IO
ZeroEndingStream bool

Public Methods

Method Description
Close ( ) : void
GetAttribute ( int i ) : string
GetAttribute ( string name ) : string
GetAttribute ( string localName, string namespaceURI ) : string
HasLineInfo ( ) : bool
LookupNamespace ( String prefix ) : String
MoveToAttribute ( string name ) : bool
MoveToAttribute ( string localName, string namespaceURI ) : bool
MoveToAttribute ( int i ) : void
MoveToElement ( ) : bool
MoveToFirstAttribute ( ) : bool
MoveToNextAttribute ( ) : bool
Read ( ) : bool
ReadAttributeValue ( ) : bool
ReadContentAsBase64 ( byte buffer, int index, int count ) : int
ReadContentAsBinHex ( byte buffer, int index, int count ) : int
ReadElementContentAsBase64 ( byte buffer, int index, int count ) : int
ReadElementContentAsBinHex ( byte buffer, int index, int count ) : int
ReadString ( ) : string
ReadValueChunk ( char buffer, int index, int count ) : int
ResolveEntity ( ) : void
Skip ( ) : void
XmlTextReaderImpl ( string url ) : System.IO
XmlTextReaderImpl ( string url, XmlNameTable nt ) : System.IO

Private Methods

Method Description
AddAttribute ( int endNamePos, int colonPos ) : NodeData
AddAttribute ( string localName, string prefix, string nameWPrefix ) : NodeData
AddAttributeChunkToList ( NodeData attr, NodeData chunk, NodeData &lastChunk ) : void
AddAttributeNoChecks ( string name, int attrDepth ) : NodeData
AddDefaultAttributeDtd ( IDtdDefaultAttributeInfo defAttrInfo, bool definedInDtd, NodeData nameSortedNodeData ) : bool
AddDefaultAttributeInternal ( string localName, string ns, string prefix, string value, int lineNo, int linePos, int valueLineNo, int valueLinePos, bool isXmlAttribute ) : NodeData
AddDefaultAttributeNonDtd ( SchemaAttDef attrDef ) : bool
AddDefaultAttributesAndNormalize ( ) : void
AddNamespace ( string prefix, string uri, NodeData attr ) : void
AddNode ( int nodeIndex, int nodeDepth ) : NodeData
AdjustLineInfo ( char pChars, int length, bool isNormalized, LineInfo &lineInfo ) : void
AdjustLineInfo ( char chars, int startPos, int endPos, bool isNormalized, LineInfo &lineInfo ) : void
AdjustLineInfo ( string str, int startPos, int endPos, bool isNormalized, LineInfo &lineInfo ) : void
AllocNode ( int nodeIndex, int nodeDepth ) : NodeData
AttributeDuplCheck ( ) : void
AttributeNamespaceLookup ( ) : void
BlockCopy ( byte src, int srcOffset, byte dst, int dstOffset, int count ) : void
BlockCopyChars ( char src, int srcOffset, char dst, int dstOffset, int count ) : void
ChangeCurrentNodeType ( System.Xml.XmlNodeType newNodeType ) : void
CheckEncoding ( string newEncodingName ) : Encoding
Close ( bool closeInput ) : void
DetectEncoding ( ) : Encoding
DtdParserProxy_OnNewLine ( int pos ) : void
DtdParserProxy_OnPublicId ( string publicId, LineInfo keywordLineInfo, LineInfo publicLiteralLineInfo ) : void
DtdParserProxy_OnSystemId ( string systemId, LineInfo keywordLineInfo, LineInfo systemLiteralLineInfo ) : void
DtdParserProxy_ParseComment ( StringBuilder sb ) : void
DtdParserProxy_ParseNamedCharRef ( bool expand, StringBuilder internalSubsetBuilder ) : int
DtdParserProxy_ParseNumericCharRef ( StringBuilder internalSubsetBuilder ) : int
DtdParserProxy_ParsePI ( StringBuilder sb ) : void
DtdParserProxy_PopEntity ( IDtdEntityInfo &oldEntity, int &newEntityId ) : bool
DtdParserProxy_PushEntity ( IDtdEntityInfo entity, int &entityId ) : bool
DtdParserProxy_PushExternalSubset ( string systemId, string publicId ) : bool
DtdParserProxy_PushInternalDtd ( string baseUri, string internalDtd ) : void
DtdParserProxy_ReadData ( ) : int
DtdParserProxy_Throw ( Exception e ) : void
EatWhitespaces ( StringBuilder sb ) : int
ElementNamespaceLookup ( ) : void
FinishAttributeValueIterator ( ) : void
FinishIncrementalRead ( ) : void
FinishInit ( ) : void
FinishInitStream ( ) : void
FinishInitTextReader ( ) : void
FinishInitUriString ( ) : void
FinishOtherValueIterator ( ) : void
FinishPartialValue ( ) : void
FinishReadContentAsBinary ( ) : void
FinishReadElementContentAsBinary ( ) : void
FinishReadValueChunk ( ) : void
FullAttributeCleanup ( ) : void
GetChars ( int maxCharsCount ) : int
GetIndexOfAttributeWithPrefix ( string name ) : int
GetIndexOfAttributeWithoutPrefix ( string name ) : int
GetNamespacesInScope ( XmlNamespaceScope scope ) : string>.IDictionary
GetRemainder ( ) : TextReader
GetResolver ( ) : XmlResolver
GetTempResolver ( ) : XmlResolver
GetTextNodeType ( int orChars ) : System.Xml.XmlNodeType
GetWhitespaceType ( ) : System.Xml.XmlNodeType
HandleEntityEnd ( bool checkEntityNesting ) : bool
HandleEntityReference ( bool isInAttributeValue, EntityExpandType expandType, int &charRefEndPos ) : EntityType
HandleGeneralEntityReference ( string name, bool isInAttributeValue, bool pushFakeEntityIfNullResolver, int entityStartLinePos ) : EntityType
IXmlNamespaceResolver ( XmlNamespaceScope scope ) : string>.IDictionary
IXmlNamespaceResolver ( string prefix ) : string
IncrementalRead ( ) : int
IncrementalRead ( Array array, int index, int count ) : int
InitBase64Decoder ( ) : void
InitBinHexDecoder ( ) : void
InitFragmentReader ( System.Xml.XmlNodeType fragmentType, XmlParserContext parserContext, bool allowXmlDeclFragment ) : void
InitIncrementalRead ( IncrementalReadDecoder decoder ) : void
InitReadContentAsBinary ( ) : bool
InitReadElementContentAsBinary ( ) : bool
InitStreamInput ( Stream stream, Encoding encoding ) : void
InitStreamInput ( Uri baseUri, Stream stream, Encoding encoding ) : void
InitStreamInput ( Uri baseUri, string baseUriStr, Stream stream, Encoding encoding ) : void
InitStreamInput ( Uri baseUri, string baseUriStr, Stream stream, byte bytes, int byteCount, Encoding encoding ) : void
InitStreamInput ( string baseUriStr, Stream stream, Encoding encoding ) : void
InitStringInput ( string baseUriStr, Encoding originalEncoding, string str ) : void
InitTextReaderInput ( string baseUriStr, TextReader input ) : void
InitTextReaderInput ( string baseUriStr, Uri baseUri, TextReader input ) : void
InvalidCharRecovery ( int &bytesCount, int &charsCount ) : void
LookupNamespace ( NodeData node ) : string
LookupPrefix ( string namespaceName ) : string
MoveOffEntityReference ( ) : void
MoveToNextContentNode ( bool moveIfOnContentNode ) : bool
OnDefaultNamespaceDecl ( NodeData attr ) : void
OnEof ( ) : void
OnNamespaceDecl ( NodeData attr ) : void
OnNewLine ( int pos ) : void
OnXmlReservedAttribute ( NodeData attr ) : void
OpenAndPush ( Uri uri ) : bool
OpenUrl ( ) : void
OpenUrlDelegate ( object xmlResolver ) : void
ParseAttributeValueChunk ( ) : bool
ParseAttributeValueSlow ( int curPos, char quoteChar, NodeData attr ) : void
ParseAttributes ( ) : void
ParseCData ( ) : void
ParseCDataOrComment ( System.Xml.XmlNodeType type, int &outStartPos, int &outEndPos ) : bool
ParseCDataOrComment ( System.Xml.XmlNodeType type ) : void
ParseCharRefInline ( int startPos, int &charCount, EntityType &entityType ) : int
ParseComment ( ) : bool
ParseDoctypeDecl ( ) : bool
ParseDocumentContent ( ) : bool
ParseDtd ( ) : void
ParseDtdFromParserContext ( ) : void
ParseElement ( ) : void
ParseElementContent ( ) : bool
ParseEndElement ( ) : void
ParseEntityName ( ) : string
ParseEntityReference ( ) : void
ParseFragmentAttribute ( ) : bool
ParseName ( ) : int
ParseNamedCharRef ( bool expand, StringBuilder internalSubsetBuilder ) : int
ParseNamedCharRefInline ( int startPos, bool expand, StringBuilder internalSubsetBuilder ) : int
ParseNumericCharRef ( bool expand, StringBuilder internalSubsetBuilder, EntityType &entityType ) : int
ParseNumericCharRefInline ( int startPos, bool expand, StringBuilder internalSubsetBuilder, int &charCount, EntityType &entityType ) : int
ParsePI ( ) : bool
ParsePI ( StringBuilder piInDtdStringBuilder ) : bool
ParsePIValue ( int &outStartPos, int &outEndPos ) : bool
ParseQName ( bool isQName, int startOffset, int &colonPos ) : int
ParseQName ( int &colonPos ) : int
ParseRootLevelWhitespace ( ) : bool
ParseText ( ) : bool
ParseText ( int &startPos, int &endPos, int &outOrChars ) : bool
ParseUnexpectedToken ( ) : string
ParseUnexpectedToken ( int pos ) : string
ParseXmlDeclaration ( bool isTextDecl ) : bool
ParseXmlDeclarationFragment ( ) : void
PopElementContext ( ) : void
PopEntity ( ) : void
PopParsingState ( ) : void
PopXmlContext ( ) : void
ProcessDtdFromParserContext ( XmlParserContext context ) : void
PushExternalEntity ( IDtdEntityInfo entity ) : bool
PushExternalEntityOrSubset ( string publicId, string systemId, Uri baseUri, string entityName ) : void
PushInternalEntity ( IDtdEntityInfo entity ) : void
PushParsingState ( ) : void
PushXmlContext ( ) : void
ReThrow ( Exception e, int lineNo, int linePos ) : void
ReadBase64 ( byte array, int offset, int len ) : int
ReadBinHex ( byte array, int offset, int len ) : int
ReadChars ( char buffer, int index, int count ) : int
ReadContentAsBinary ( byte buffer, int index, int count ) : int
ReadData ( ) : int
ReadDataInName ( int &pos ) : bool
ReadElementContentAsBinary ( byte buffer, int index, int count ) : int
RegisterConsumedCharacters ( long characters, bool inEntityReference ) : void

This method should be called every time the reader is about to consume some number of characters from the input. It will count it agains the security counters and may throw if some of the security limits are exceeded.

RegisterEntity ( IDtdEntityInfo entity ) : void
ResetAttributes ( ) : void
ResetState ( ) : void
SendValidationEvent ( XmlSeverityType severity, XmlSchemaException exception ) : void
SendValidationEvent ( XmlSeverityType severity, string code, string arg, int lineNo, int linePos ) : void
SetDtdInfo ( IDtdInfo newDtdInfo ) : void
SetErrorState ( ) : void
SetupEncoding ( Encoding encoding ) : void
SetupEndEntityNodeInAttribute ( ) : void
SetupEndEntityNodeInContent ( ) : void
SetupFromParserContext ( XmlParserContext context, XmlReaderSettings settings ) : void
SetupReadContentAsBinaryState ( ParsingFunction inReadBinaryFunction ) : void
ShiftBuffer ( int sourcePos, int destPos, int count ) : void
SkipDtd ( ) : void
SkipPartialTextValue ( ) : void
SkipPublicOrSystemIdLiteral ( ) : void
SkipUntil ( char stopChar, bool recognizeLiterals ) : void
StripSpaces ( string value ) : string
StripSpaces ( char value, int index, int &len ) : void
SwitchEncoding ( Encoding newEncoding ) : void
SwitchEncodingToUTF8 ( ) : void
Throw ( Exception e ) : void
Throw ( int pos, string res ) : void
Throw ( int pos, string res, string arg ) : void
Throw ( string res ) : void
Throw ( string res, int lineNo, int linePos ) : void
Throw ( string res, string arg ) : void
Throw ( string res, string arg, Exception innerException ) : void
Throw ( string res, string arg, int lineNo, int linePos ) : void
ThrowExpectingWhitespace ( int pos ) : void
ThrowInvalidChar ( char data, int length, int invCharPos ) : void
ThrowTagMismatch ( NodeData startTag ) : void
ThrowUnclosedElements ( ) : void
ThrowUnexpectedToken ( int pos, string expectedToken ) : void
ThrowUnexpectedToken ( int pos, string expectedToken1, string expectedToken2 ) : void
ThrowUnexpectedToken ( string expectedToken1 ) : void
ThrowUnexpectedToken ( string expectedToken1, string expectedToken2 ) : void
ThrowWithoutLineInfo ( string res ) : void
ThrowWithoutLineInfo ( string res, string arg ) : void
ThrowWithoutLineInfo ( string res, string args, Exception innerException ) : void
UnDecodeChars ( ) : void
UnregisterEntity ( ) : void
UriEqual ( Uri uri1, string uri1Str, string uri2Str, XmlResolver resolver ) : bool
XmlTextReaderImpl ( ) : System.IO
XmlTextReaderImpl ( Stream input ) : System.IO
XmlTextReaderImpl ( Stream input, XmlNameTable nt ) : System.IO
XmlTextReaderImpl ( Stream xmlFragment, XmlNodeType fragType, XmlParserContext context ) : System.IO
XmlTextReaderImpl ( Stream stream, byte bytes, int byteCount, XmlReaderSettings settings, Uri baseUri, string baseUriStr, XmlParserContext context, bool closeInput ) : System.IO
XmlTextReaderImpl ( TextReader input ) : System.IO
XmlTextReaderImpl ( TextReader input, XmlNameTable nt ) : System.IO
XmlTextReaderImpl ( TextReader input, XmlReaderSettings settings, string baseUriStr, XmlParserContext context ) : System.IO
XmlTextReaderImpl ( XmlNameTable nt ) : System.IO
XmlTextReaderImpl ( XmlResolver resolver, XmlReaderSettings settings, XmlParserContext context ) : System.IO
XmlTextReaderImpl ( string url, Stream input ) : System.IO
XmlTextReaderImpl ( string url, Stream input, XmlNameTable nt ) : System.IO
XmlTextReaderImpl ( string url, TextReader input ) : System.IO
XmlTextReaderImpl ( string url, TextReader input, XmlNameTable nt ) : System.IO
XmlTextReaderImpl ( string xmlFragment, XmlNodeType fragType, XmlParserContext context ) : System.IO
XmlTextReaderImpl ( string xmlFragment, XmlParserContext context ) : System.IO
XmlTextReaderImpl ( string xmlFragment, XmlParserContext context, XmlReaderSettings settings ) : System.IO
XmlTextReaderImpl ( string uriStr, XmlReaderSettings settings, XmlParserContext context, XmlResolver uriResolver ) : System.IO
ZeroEndingStream ( int pos ) : bool

Method Details

Close() public method

public Close ( ) : void
return void

GetAttribute() public method

public GetAttribute ( int i ) : string
i int
return string

GetAttribute() public method

public GetAttribute ( string name ) : string
name string
return string

GetAttribute() public method

public GetAttribute ( string localName, string namespaceURI ) : string
localName string
namespaceURI string
return string

HasLineInfo() public method

public HasLineInfo ( ) : bool
return bool

LookupNamespace() public method

public LookupNamespace ( String prefix ) : String
prefix String
return String

MoveToAttribute() public method

public MoveToAttribute ( string name ) : bool
name string
return bool

MoveToAttribute() public method

public MoveToAttribute ( string localName, string namespaceURI ) : bool
localName string
namespaceURI string
return bool

MoveToAttribute() public method

public MoveToAttribute ( int i ) : void
i int
return void

MoveToElement() public method

public MoveToElement ( ) : bool
return bool

MoveToFirstAttribute() public method

public MoveToFirstAttribute ( ) : bool
return bool

MoveToNextAttribute() public method

public MoveToNextAttribute ( ) : bool
return bool

Read() public method

public Read ( ) : bool
return bool

ReadAttributeValue() public method

public ReadAttributeValue ( ) : bool
return bool

ReadContentAsBase64() public method

public ReadContentAsBase64 ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
return int

ReadContentAsBinHex() public method

public ReadContentAsBinHex ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
return int

ReadElementContentAsBase64() public method

public ReadElementContentAsBase64 ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
return int

ReadElementContentAsBinHex() public method

public ReadElementContentAsBinHex ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
return int

ReadString() public method

public ReadString ( ) : string
return string

ReadValueChunk() public method

public ReadValueChunk ( char buffer, int index, int count ) : int
buffer char
index int
count int
return int

ResolveEntity() public method

public ResolveEntity ( ) : void
return void

Skip() public method

public Skip ( ) : void
return void

XmlTextReaderImpl() public method

public XmlTextReaderImpl ( string url ) : System.IO
url string
return System.IO

XmlTextReaderImpl() public method

public XmlTextReaderImpl ( string url, XmlNameTable nt ) : System.IO
url string
nt XmlNameTable
return System.IO