Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ OpenAndPush()

bool System.Xml.XmlTextReaderImpl.OpenAndPush ( Uri uri)
inlineprivate

Definition at line 7192 of file XmlTextReaderImpl.cs.

7193 {
7195 {
7196 TextReader textReader = (TextReader)_xmlResolver.GetEntity(uri, null, typeof(TextReader));
7197 if (textReader == null)
7198 {
7199 return false;
7200 }
7202 InitTextReaderInput(uri.ToString(), uri, textReader);
7203 }
7204 else
7205 {
7207 if (stream == null)
7208 {
7209 return false;
7210 }
7212 InitStreamInput(uri, stream, null);
7213 }
7214 return true;
7215 }
object? GetEntity(Uri absoluteUri, string? role, Type? ofObjectToReturn)
virtual bool SupportsType(Uri absoluteUri, Type? type)
void InitTextReaderInput(string baseUriStr, TextReader input)
void InitStreamInput(Stream stream, Encoding encoding)

References System.Xml.XmlTextReaderImpl._xmlResolver, System.Xml.XmlResolver.GetEntity(), System.Xml.XmlTextReaderImpl.InitStreamInput(), System.Xml.XmlTextReaderImpl.InitTextReaderInput(), System.Xml.XmlTextReaderImpl.PushParsingState(), System.stream, System.Xml.XmlTextReaderImpl.Stream, System.Xml.XmlResolver.SupportsType(), System.Xml.XmlTextReaderImpl.TextReader, and System.Uri.ToString().

Referenced by System.Xml.XmlTextReaderImpl.PushExternalEntityOrSubset().