IXmlJsonReaderInitializer.xml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Type Name="IXmlJsonReaderInitializer" FullName="System.Runtime.Serialization.Json.IXmlJsonReaderInitializer">
  3. <TypeSignature Language="C#" Value="public interface IXmlJsonReaderInitializer" />
  4. <TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract IXmlJsonReaderInitializer" />
  5. <AssemblyInfo>
  6. <AssemblyName>System.Runtime.Serialization</AssemblyName>
  7. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  8. </AssemblyInfo>
  9. <Interfaces />
  10. <Docs>
  11. <remarks>
  12. <attribution license="cc4" from="Microsoft" modified="false" />
  13. <para>The <see cref="T:System.Xml.XmlDictionaryReader" /> objects created by one of the <see cref="Overload:System.Runtime.Serialization.Json.JsonReaderWriterFactory.CreateJsonReader" /> methods implement this interface and are initialized ready to read JSON-encoded data. But if a user wants to reuse the same <see cref="T:System.Xml.XmlDictionaryReader" /> object to read other JSON-encoded data, then the reader must be initialized to the second dataset to be read by using one of the <see cref="Overload:System.Runtime.Serialization.Json.IXmlJsonReaderInitializer.SetInput" /> methods.</para>
  14. </remarks>
  15. <summary>
  16. <attribution license="cc4" from="Microsoft" modified="false" />
  17. <para>Specifies the interface for initializing a JavaScript Object Notation (JSON) reader when reusing them to read from a particular stream or buffer.</para>
  18. </summary>
  19. </Docs>
  20. <Members>
  21. <Member MemberName="SetInput">
  22. <MemberSignature Language="C#" Value="public void SetInput (System.IO.Stream stream, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.OnXmlDictionaryReaderClose onClose);" />
  23. <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void SetInput(class System.IO.Stream stream, class System.Text.Encoding encoding, class System.Xml.XmlDictionaryReaderQuotas quotas, class System.Xml.OnXmlDictionaryReaderClose onClose) cil managed" />
  24. <MemberType>Method</MemberType>
  25. <AssemblyInfo>
  26. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  27. </AssemblyInfo>
  28. <ReturnValue>
  29. <ReturnType>System.Void</ReturnType>
  30. </ReturnValue>
  31. <Parameters>
  32. <Parameter Name="stream" Type="System.IO.Stream" />
  33. <Parameter Name="encoding" Type="System.Text.Encoding" />
  34. <Parameter Name="quotas" Type="System.Xml.XmlDictionaryReaderQuotas" />
  35. <Parameter Name="onClose" Type="System.Xml.OnXmlDictionaryReaderClose" />
  36. </Parameters>
  37. <Docs>
  38. <remarks>
  39. <attribution license="cc4" from="Microsoft" modified="false" />
  40. <para>A <see cref="T:System.Xml.XmlDictionaryReader" /> object that reads JSON-encoded streams can be reused by calling the <see cref="M:System.Runtime.Serialization.Json.IXmlJsonReaderInitializer.SetInput(System.IO.Stream,System.Text.Encoding,System.Xml.XmlDictionaryReaderQuotas,System.Xml.OnXmlDictionaryReaderClose)" /> method to reinitialize it.</para>
  41. <para>The reader can interpret the UTF-8 and the UTF-16 (big- or little-endian) encodings. The reader uses the encoding set at initialization time if one is passed or the encoding is automatically detected if null is passed.</para>
  42. <para>The <see cref="P:System.Xml.XmlDictionaryReaderQuotas.MaxBytesPerRead" /> value set as part of the <paramref name="quotas" /> parameter only limits the amount of information being read into memory when the input is being read from a stream with the <see cref="M:System.Runtime.Serialization.Json.IXmlJsonReaderInitializer.SetInput(System.IO.Stream,System.Text.Encoding,System.Xml.XmlDictionaryReaderQuotas,System.Xml.OnXmlDictionaryReaderClose)" /> method and is not enforced when the <see cref="M:System.Runtime.Serialization.Json.IXmlJsonReaderInitializer.SetInput(System.Byte[],System.Int32,System.Int32,System.Text.Encoding,System.Xml.XmlDictionaryReaderQuotas,System.Xml.OnXmlDictionaryReaderClose)" /> method is used to read information from a buffer. The limits on the number of attributes that can be loaded are not relevant to the JSON context.</para>
  43. </remarks>
  44. <summary>
  45. <attribution license="cc4" from="Microsoft" modified="false" />
  46. <para>Reinitializes a JavaScript Object Notation (JSON) enabled reader to a specified stream that contains JSON-encoded data.</para>
  47. </summary>
  48. <param name="stream">
  49. <attribution license="cc4" from="Microsoft" modified="false" />The input <see cref="T:System.IO.Stream" /> from which to read.</param>
  50. <param name="encoding">
  51. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Text.Encoding" /> used by the reader.</param>
  52. <param name="quotas">
  53. <attribution license="cc4" from="Microsoft" modified="false" />
  54. <see cref="T:System.Xml.XmlDictionaryReaderQuotas" /> to apply.</param>
  55. <param name="onClose">
  56. <attribution license="cc4" from="Microsoft" modified="false" />Delegate to call when the reader is closed.</param>
  57. </Docs>
  58. </Member>
  59. <Member MemberName="SetInput">
  60. <MemberSignature Language="C#" Value="public void SetInput (byte[] buffer, int offset, int count, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.OnXmlDictionaryReaderClose onClose);" />
  61. <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void SetInput(unsigned int8[] buffer, int32 offset, int32 count, class System.Text.Encoding encoding, class System.Xml.XmlDictionaryReaderQuotas quotas, class System.Xml.OnXmlDictionaryReaderClose onClose) cil managed" />
  62. <MemberType>Method</MemberType>
  63. <AssemblyInfo>
  64. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  65. </AssemblyInfo>
  66. <ReturnValue>
  67. <ReturnType>System.Void</ReturnType>
  68. </ReturnValue>
  69. <Parameters>
  70. <Parameter Name="buffer" Type="System.Byte[]" />
  71. <Parameter Name="offset" Type="System.Int32" />
  72. <Parameter Name="count" Type="System.Int32" />
  73. <Parameter Name="encoding" Type="System.Text.Encoding" />
  74. <Parameter Name="quotas" Type="System.Xml.XmlDictionaryReaderQuotas" />
  75. <Parameter Name="onClose" Type="System.Xml.OnXmlDictionaryReaderClose" />
  76. </Parameters>
  77. <Docs>
  78. <remarks>
  79. <attribution license="cc4" from="Microsoft" modified="false" />
  80. <para>A <see cref="T:System.Xml.XmlDictionaryReader" /> object that reads a JSON-encoded buffered <see cref="T:System.Byte" /> can be reused by calling the <see cref="M:System.Runtime.Serialization.Json.IXmlJsonReaderInitializer.SetInput(System.Byte[],System.Int32,System.Int32,System.Text.Encoding,System.Xml.XmlDictionaryReaderQuotas,System.Xml.OnXmlDictionaryReaderClose)" /> method to reinitialize it.</para>
  81. <para>The reader can interpret the UTF-8 and the UTF-16 (big- or little-endian) encodings. The reader uses the encoding set at initialization time if one is passed or the encoding is automatically detected if null is passed.</para>
  82. <para>The <see cref="P:System.Xml.XmlDictionaryReaderQuotas.MaxBytesPerRead" /> value set as part of the <paramref name="quotas" /> parameter only limits the amount of information being read into memory when the input is being read from a stream with the <see cref="M:System.Runtime.Serialization.Json.IXmlJsonReaderInitializer.SetInput(System.IO.Stream,System.Text.Encoding,System.Xml.XmlDictionaryReaderQuotas,System.Xml.OnXmlDictionaryReaderClose)" /> method and is not enforced when the <see cref="M:System.Runtime.Serialization.Json.IXmlJsonReaderInitializer.SetInput(System.Byte[],System.Int32,System.Int32,System.Text.Encoding,System.Xml.XmlDictionaryReaderQuotas,System.Xml.OnXmlDictionaryReaderClose)" /> method is used to read information from a buffer. The limits on the number of attributes that can be loaded are not relevant to the JSON context.</para>
  83. </remarks>
  84. <summary>
  85. <attribution license="cc4" from="Microsoft" modified="false" />
  86. <para>Reinitializes a JavaScript Object Notation (JSON) enabled reader to a specified buffer that contains JSON-encoded data.</para>
  87. </summary>
  88. <param name="buffer">
  89. <attribution license="cc4" from="Microsoft" modified="false" />The input <see cref="T:System.Byte" /> buffer array from which to read. </param>
  90. <param name="offset">
  91. <attribution license="cc4" from="Microsoft" modified="false" />The starting position from which to read in <paramref name="buffer" />.</param>
  92. <param name="count">
  93. <attribution license="cc4" from="Microsoft" modified="false" />The number of bytes that can be read from <paramref name="buffer" />.</param>
  94. <param name="encoding">
  95. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Text.Encoding" /> used by the reader.</param>
  96. <param name="quotas">
  97. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Xml.XmlDictionaryReaderQuotas" /> to apply.</param>
  98. <param name="onClose">
  99. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Xml.OnXmlDictionaryReaderClose" /> delegate to call when the reader is closed.</param>
  100. </Docs>
  101. </Member>
  102. </Members>
  103. </Type>