XmlDictionaryWriter.cs 3.2 KB

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