1 package javax.xml.stream; 2 3 import javax.xml.namespace.NamespaceContext ; 4 5 166 public interface XMLStreamWriter { 167 168 175 public void writeStartElement(String localName) 176 throws XMLStreamException; 177 178 185 public void writeStartElement(String namespaceURI, String localName) 186 throws XMLStreamException; 187 188 195 public void writeStartElement(String prefix, 196 String localName, 197 String namespaceURI) 198 throws XMLStreamException; 199 200 207 public void writeEmptyElement(String namespaceURI, String localName) 208 throws XMLStreamException; 209 210 217 public void writeEmptyElement(String prefix, String localName, String namespaceURI) 218 throws XMLStreamException; 219 220 225 public void writeEmptyElement(String localName) 226 throws XMLStreamException; 227 228 239 241 247 public void writeEndElement() 248 throws XMLStreamException; 249 250 254 public void writeEndDocument() 255 throws XMLStreamException; 256 257 262 public void close() 263 throws XMLStreamException; 264 265 269 public void flush() 270 throws XMLStreamException; 271 272 280 public void writeAttribute(String localName, String value) 281 throws XMLStreamException; 282 283 293 294 public void writeAttribute(String prefix, 295 String namespaceURI, 296 String localName, 297 String value) 298 throws XMLStreamException; 299 300 309 public void writeAttribute(String namespaceURI, 310 String localName, 311 String value) 312 throws XMLStreamException; 313 314 324 public void writeNamespace(String prefix, String namespaceURI) 325 throws XMLStreamException; 326 327 333 public void writeDefaultNamespace(String namespaceURI) 334 throws XMLStreamException; 335 336 341 public void writeComment(String data) 342 throws XMLStreamException; 343 344 349 public void writeProcessingInstruction(String target) 350 throws XMLStreamException; 351 352 358 public void writeProcessingInstruction(String target, 359 String data) 360 throws XMLStreamException; 361 362 367 public void writeCData(String data) 368 throws XMLStreamException; 369 370 377 public void writeDTD(String dtd) 378 throws XMLStreamException; 379 380 385 public void writeEntityRef(String name) 386 throws XMLStreamException; 387 388 392 public void writeStartDocument() 393 throws XMLStreamException; 394 395 400 public void writeStartDocument(String version) 401 throws XMLStreamException; 402 403 413 public void writeStartDocument(String encoding, 414 String version) 415 throws XMLStreamException; 416 417 422 public void writeCharacters(String text) 423 throws XMLStreamException; 424 425 432 public void writeCharacters(char[] text, int start, int len) 433 throws XMLStreamException; 434 435 440 public String getPrefix(String uri) 441 throws XMLStreamException; 442 443 452 public void setPrefix(String prefix, String uri) 453 throws XMLStreamException; 454 455 456 465 public void setDefaultNamespace(String uri) 466 throws XMLStreamException; 467 468 482 public void setNamespaceContext(NamespaceContext context) 483 throws XMLStreamException; 484 485 489 public NamespaceContext getNamespaceContext(); 490 491 498 public Object getProperty(java.lang.String name) throws IllegalArgumentException ; 499 500 } 501 502 503 504 | Popular Tags |