Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlTextReader.cs
Go to the documentation of this file.
3using System.IO;
4using System.Text;
5
6namespace System.Xml;
7
10{
11 private readonly XmlTextReaderImpl _impl;
12
13 public override XmlNodeType NodeType => _impl.NodeType;
14
15 public override string Name => _impl.Name;
16
17 public override string LocalName => _impl.LocalName;
18
19 public override string NamespaceURI => _impl.NamespaceURI;
20
21 public override string Prefix => _impl.Prefix;
22
23 public override bool HasValue => _impl.HasValue;
24
25 public override string Value => _impl.Value;
26
27 public override int Depth => _impl.Depth;
28
29 public override string BaseURI => _impl.BaseURI;
30
31 public override bool IsEmptyElement => _impl.IsEmptyElement;
32
33 public override bool IsDefault => _impl.IsDefault;
34
35 public override char QuoteChar => _impl.QuoteChar;
36
37 public override XmlSpace XmlSpace => _impl.XmlSpace;
38
39 public override string XmlLang => _impl.XmlLang;
40
41 public override int AttributeCount => _impl.AttributeCount;
42
43 public override bool EOF => _impl.EOF;
44
45 public override ReadState ReadState => _impl.ReadState;
46
48
49 public override bool CanResolveEntity => true;
50
51 public override bool CanReadBinaryContent => true;
52
53 public override bool CanReadValueChunk => false;
54
56
58
59 public bool Namespaces
60 {
61 get
62 {
63 return _impl.Namespaces;
64 }
65 set
66 {
68 }
69 }
70
71 public bool Normalization
72 {
73 get
74 {
75 return _impl.Normalization;
76 }
77 set
78 {
80 }
81 }
82
83 public Encoding? Encoding => _impl.Encoding;
84
86 {
87 get
88 {
89 return _impl.WhitespaceHandling;
90 }
91 set
92 {
94 }
95 }
96
97 [Obsolete("XmlTextReader.ProhibitDtd has been deprecated. Use DtdProcessing instead.")]
98 public bool ProhibitDtd
99 {
100 get
101 {
102 return _impl.DtdProcessing == DtdProcessing.Prohibit;
103 }
104 set
105 {
106 _impl.DtdProcessing = ((!value) ? DtdProcessing.Parse : DtdProcessing.Prohibit);
107 }
108 }
109
111 {
112 get
113 {
114 return _impl.DtdProcessing;
115 }
116 set
117 {
119 }
120 }
121
123 {
124 get
125 {
126 return _impl.EntityHandling;
127 }
128 set
129 {
131 }
132 }
133
135 {
136 set
137 {
139 }
140 }
141
143
145
153
154 internal override IDtdInfo? DtdInfo => _impl.DtdInfo;
155
156 protected XmlTextReader()
157 {
158 _impl = new XmlTextReaderImpl();
159 _impl.OuterReader = this;
160 }
161
163 {
165 _impl.OuterReader = this;
166 }
167
169 {
171 _impl.OuterReader = this;
172 }
173
175 {
177 _impl.OuterReader = this;
178 }
179
185
187 {
189 _impl.OuterReader = this;
190 }
191
193 {
195 _impl.OuterReader = this;
196 }
197
199 {
201 _impl.OuterReader = this;
202 }
203
209
211 {
213 _impl.OuterReader = this;
214 }
215
221
223 {
225 _impl.OuterReader = this;
226 }
227
228 public XmlTextReader(string url)
229 {
230 _impl = new XmlTextReaderImpl(url, new NameTable());
231 _impl.OuterReader = this;
232 }
233
235 {
237 _impl.OuterReader = this;
238 }
239
240 public override string? GetAttribute(string name)
241 {
242 return _impl.GetAttribute(name);
243 }
244
245 public override string? GetAttribute(string localName, string? namespaceURI)
246 {
247 return _impl.GetAttribute(localName, namespaceURI);
248 }
249
250 public override string GetAttribute(int i)
251 {
252 return _impl.GetAttribute(i);
253 }
254
255 public override bool MoveToAttribute(string name)
256 {
257 return _impl.MoveToAttribute(name);
258 }
259
260 public override bool MoveToAttribute(string localName, string? namespaceURI)
261 {
262 return _impl.MoveToAttribute(localName, namespaceURI);
263 }
264
265 public override void MoveToAttribute(int i)
266 {
268 }
269
270 public override bool MoveToFirstAttribute()
271 {
273 }
274
275 public override bool MoveToNextAttribute()
276 {
277 return _impl.MoveToNextAttribute();
278 }
279
280 public override bool MoveToElement()
281 {
282 return _impl.MoveToElement();
283 }
284
285 public override bool ReadAttributeValue()
286 {
287 return _impl.ReadAttributeValue();
288 }
289
290 public override bool Read()
291 {
292 return _impl.Read();
293 }
294
295 public override void Close()
296 {
297 _impl.Close();
298 }
299
300 public override void Skip()
301 {
302 _impl.Skip();
303 }
304
305 public override string? LookupNamespace(string prefix)
306 {
308 if (text != null && text.Length == 0)
309 {
310 text = null;
311 }
312 return text;
313 }
314
315 public override void ResolveEntity()
316 {
318 }
319
320 public override int ReadContentAsBase64(byte[] buffer, int index, int count)
321 {
323 }
324
325 public override int ReadElementContentAsBase64(byte[] buffer, int index, int count)
326 {
328 }
329
330 public override int ReadContentAsBinHex(byte[] buffer, int index, int count)
331 {
333 }
334
335 public override int ReadElementContentAsBinHex(byte[] buffer, int index, int count)
336 {
338 }
339
340 public override string ReadString()
341 {
343 return base.ReadString();
344 }
345
346 public bool HasLineInfo()
347 {
348 return true;
349 }
350
355
360
365
370
371 public void ResetState()
372 {
374 }
375
377 {
378 return _impl.GetRemainder();
379 }
380
381 public int ReadChars(char[] buffer, int index, int count)
382 {
383 return _impl.ReadChars(buffer, index, count);
384 }
385
386 public int ReadBase64(byte[] array, int offset, int len)
387 {
388 return _impl.ReadBase64(array, offset, len);
389 }
390
391 public int ReadBinHex(byte[] array, int offset, int len)
392 {
393 return _impl.ReadBinHex(array, offset, len);
394 }
395}
virtual XmlSpace XmlSpace
Definition XmlReader.cs:96
virtual bool HasValue
Definition XmlReader.cs:82
virtual ? IDtdInfo DtdInfo
Definition XmlReader.cs:145
virtual string XmlLang
Definition XmlReader.cs:98
XmlNameTable NameTable
Definition XmlReader.cs:116
override int ReadElementContentAsBinHex(byte[] buffer, int index, int count)
string IXmlNamespaceResolver. LookupPrefix(string namespaceName)
override bool MoveToAttribute(string name)
IDictionary< string, string > IXmlNamespaceResolver. GetNamespacesInScope(XmlNamespaceScope scope)
override int ReadContentAsBase64(byte[] buffer, int index, int count)
int ReadBinHex(byte[] array, int offset, int len)
int ReadChars(char[] buffer, int index, int count)
override XmlNamespaceManager NamespaceManager
override int ReadElementContentAsBase64(byte[] buffer, int index, int count)
int ReadBase64(byte[] array, int offset, int len)
override string LookupNamespace(string prefix)
override int ReadContentAsBinHex(byte[] buffer, int index, int count)
override string GetAttribute(string name)
XmlTextReader(string url, Stream input)
XmlTextReader(TextReader input)
override bool MoveToFirstAttribute()
override bool MoveToAttribute(string localName, string? namespaceURI)
override int ReadContentAsBinHex(byte[] buffer, int index, int count)
XmlTextReader(string url, TextReader input, XmlNameTable nt)
override? string LookupNamespace(string prefix)
override string GetAttribute(int i)
override? string GetAttribute(string name)
int ReadBinHex(byte[] array, int offset, int len)
override string NamespaceURI
int ReadBase64(byte[] array, int offset, int len)
XmlTextReader(Stream xmlFragment, XmlNodeType fragType, XmlParserContext? context)
readonly XmlTextReaderImpl _impl
XmlTextReader(string xmlFragment, XmlNodeType fragType, XmlParserContext? context)
override? XmlNamespaceManager NamespaceManager
IDictionary< string, string > GetNamespacesInScope(XmlNamespaceScope scope)
override XmlNodeType NodeType
override string LocalName
override int ReadElementContentAsBase64(byte[] buffer, int index, int count)
XmlTextReader(Stream input, XmlNameTable nt)
override string XmlLang
override void ResolveEntity()
override bool IsEmptyElement
override bool CanResolveEntity
XmlTextReaderImpl Impl
XmlTextReader(string url, TextReader input)
override XmlNameTable NameTable
XmlTextReader(TextReader input, XmlNameTable nt)
override? string GetAttribute(string localName, string? namespaceURI)
override void MoveToAttribute(int i)
override string ReadString()
override? IDtdInfo DtdInfo
XmlTextReader(string url, Stream input, XmlNameTable nt)
XmlTextReader(XmlNameTable nt)
override int ReadElementContentAsBinHex(byte[] buffer, int index, int count)
override bool MoveToElement()
override bool MoveToNextAttribute()
override bool ReadAttributeValue()
XmlTextReader(string url, XmlNameTable nt)
override bool CanReadValueChunk
int ReadChars(char[] buffer, int index, int count)
override bool CanReadBinaryContent
override int ReadContentAsBase64(byte[] buffer, int index, int count)
override string BaseURI
override bool MoveToAttribute(string name)
IDictionary< string, string > GetNamespacesInScope(XmlNamespaceScope scope)
string? LookupPrefix(string namespaceName)
string? LookupNamespace(string prefix)