XmlDictionaryWriter.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. #if NET_2_0
  2. using System;
  3. using System.IO;
  4. namespace System.Xml
  5. {
  6. public abstract class XmlDictionaryWriter : XmlShimWriter
  7. {
  8. protected XmlDictionaryWriter ()
  9. {
  10. }
  11. public bool CanCanonicalize {
  12. get { return false; }
  13. }
  14. public bool CanFragment {
  15. get { return false; }
  16. }
  17. // FIXME: add a bunch of factory methods
  18. public void EndCanonicalization ()
  19. {
  20. throw new NotSupportedException ();
  21. }
  22. public void EndFragment ()
  23. {
  24. throw new NotSupportedException ();
  25. }
  26. public void StartCanonicalization (XmlCanonicalWriter writer)
  27. {
  28. throw new NotSupportedException ();
  29. }
  30. public void StartFragment (Stream stream)
  31. {
  32. throw new NotSupportedException ();
  33. }
  34. // FIXME: add Write*Array() overloads.
  35. public void WriteAttributeString (
  36. XmlDictionaryString localName,
  37. XmlDictionaryString namespaceUri,
  38. string value)
  39. {
  40. throw new NotSupportedException ();
  41. }
  42. public void WriteAttributeString (string prefix,
  43. XmlDictionaryString localName,
  44. XmlDictionaryString namespaceUri,
  45. string value)
  46. {
  47. throw new NotSupportedException ();
  48. }
  49. public void WriteElementString (
  50. XmlDictionaryString localName,
  51. XmlDictionaryString namespaceUri,
  52. string value)
  53. {
  54. throw new NotSupportedException ();
  55. }
  56. public void WriteElementString (string prefix,
  57. XmlDictionaryString localName,
  58. XmlDictionaryString namespaceUri,
  59. string value)
  60. {
  61. throw new NotSupportedException ();
  62. }
  63. public void WriteFragment (byte [] buffer, int offset,
  64. int count)
  65. {
  66. throw new NotSupportedException ();
  67. }
  68. public void WriteNode (XmlDictionaryReader reader,
  69. bool defattr)
  70. {
  71. throw new NotSupportedException ();
  72. }
  73. public void WriteQualifiedName (
  74. XmlDictionaryString localName,
  75. XmlDictionaryString namespaceUri)
  76. {
  77. throw new NotSupportedException ();
  78. }
  79. public void WriteStartAttribute (
  80. XmlDictionaryString localName,
  81. XmlDictionaryString namespaceUri)
  82. {
  83. throw new NotSupportedException ();
  84. }
  85. public void WriteStartAttribute (string prefix,
  86. XmlDictionaryString localName,
  87. XmlDictionaryString namespaceUri)
  88. {
  89. throw new NotSupportedException ();
  90. }
  91. public void WriteStartElement (
  92. XmlDictionaryString localName,
  93. XmlDictionaryString namespaceUri)
  94. {
  95. throw new NotSupportedException ();
  96. }
  97. public void WriteStartElement (string prefix,
  98. XmlDictionaryString localName,
  99. XmlDictionaryString namespaceUri)
  100. {
  101. throw new NotSupportedException ();
  102. }
  103. public void WriteString (XmlDictionaryString value)
  104. {
  105. throw new NotSupportedException ();
  106. }
  107. public void WriteValue (UniqueId id)
  108. {
  109. throw new NotSupportedException ();
  110. }
  111. public void WriteValue (XmlDictionaryString value)
  112. {
  113. throw new NotSupportedException ();
  114. }
  115. public void WriteXmlAttribute (string localName, string value)
  116. {
  117. throw new NotSupportedException ();
  118. }
  119. public void WriteXmlAttribute (XmlDictionaryString localName,
  120. XmlDictionaryString value)
  121. {
  122. throw new NotSupportedException ();
  123. }
  124. public void WriteXmlnsAttribute (
  125. string prefix, string namespaceUri)
  126. {
  127. throw new NotSupportedException ();
  128. }
  129. public void WriteXmlnsAttribute (string prefix,
  130. XmlDictionaryString namespaceUri)
  131. {
  132. throw new NotSupportedException ();
  133. }
  134. }
  135. }
  136. #endif