1 9 package javolution.xml.stream; 10 11 import j2me.lang.CharSequence; 12 13 54 public interface XMLStreamWriter { 55 56 64 public void writeStartElement(CharSequence localName) 65 throws XMLStreamException; 66 67 76 public void writeStartElement(CharSequence namespaceURI, 77 CharSequence localName) throws XMLStreamException; 78 79 89 public void writeStartElement(CharSequence prefix, CharSequence localName, 90 CharSequence namespaceURI) throws XMLStreamException; 91 92 101 public void writeEmptyElement(CharSequence namespaceURI, 102 CharSequence localName) throws XMLStreamException; 103 104 114 public void writeEmptyElement(CharSequence prefix, CharSequence localName, 115 CharSequence namespaceURI) throws XMLStreamException; 116 117 123 public void writeEmptyElement(CharSequence localName) throws XMLStreamException; 124 125 131 public void writeEndElement() throws XMLStreamException; 132 133 138 public void writeEndDocument() throws XMLStreamException; 139 140 146 public void close() throws XMLStreamException; 147 148 153 public void flush() throws XMLStreamException; 154 155 164 public void writeAttribute(CharSequence localName, CharSequence value) 165 throws XMLStreamException; 166 167 180 181 public void writeAttribute(CharSequence prefix, CharSequence namespaceURI, 182 CharSequence localName, CharSequence value) 183 throws XMLStreamException; 184 185 197 public void writeAttribute(CharSequence namespaceURI, 198 CharSequence localName, CharSequence value) 199 throws XMLStreamException; 200 201 212 public void writeNamespace(CharSequence prefix, CharSequence namespaceURI) 213 throws XMLStreamException; 214 215 224 public void writeDefaultNamespace(CharSequence namespaceURI) 225 throws XMLStreamException; 226 227 233 public void writeComment(CharSequence data) throws XMLStreamException; 234 235 241 public void writeProcessingInstruction(CharSequence target) 242 throws XMLStreamException; 243 244 251 public void writeProcessingInstruction(CharSequence target, 252 CharSequence data) throws XMLStreamException; 253 254 260 public void writeCData(CharSequence data) throws XMLStreamException; 261 262 269 public void writeDTD(CharSequence dtd) throws XMLStreamException; 270 271 277 public void writeEntityRef(CharSequence name) throws XMLStreamException; 278 279 286 public void writeStartDocument() throws XMLStreamException; 287 288 295 public void writeStartDocument(CharSequence version) 296 throws XMLStreamException; 297 298 307 public void writeStartDocument(CharSequence encoding, CharSequence version) 308 throws XMLStreamException; 309 310 316 public void writeCharacters(CharSequence text) throws XMLStreamException; 317 318 326 public void writeCharacters(char[] text, int start, int length) 327 throws XMLStreamException; 328 329 336 public CharSequence getPrefix(CharSequence uri) throws XMLStreamException; 337 338 348 public void setPrefix(CharSequence prefix, CharSequence uri) 349 throws XMLStreamException; 350 351 360 public void setDefaultNamespace(CharSequence uri) throws XMLStreamException; 361 362 369 public Object getProperty(String name) 370 throws IllegalArgumentException ; 371 372 } | Popular Tags |