1 9 package javolution.xml.stream; 10 11 import javolution.text.CharArray; 12 import j2me.lang.CharSequence; 13 14 51 public interface XMLStreamReader extends XMLStreamConstants { 52 53 59 public Object getProperty(String name) throws IllegalArgumentException ; 60 61 95 public int next() throws XMLStreamException; 96 97 108 public void require(int type, CharSequence namespaceURI, 109 CharSequence localName) throws XMLStreamException; 110 111 159 public CharArray getElementText() throws XMLStreamException; 160 161 201 public int nextTag() throws XMLStreamException; 202 203 212 public boolean hasNext() throws XMLStreamException; 213 214 221 public void close() throws XMLStreamException; 222 223 241 public CharArray getNamespaceURI(CharSequence prefix); 242 243 249 public boolean isStartElement(); 250 251 257 public boolean isEndElement(); 258 259 265 public boolean isCharacters(); 266 267 274 public boolean isWhiteSpace(); 275 276 285 public CharArray getAttributeValue(CharSequence namespaceURI, 286 CharSequence localName); 287 288 296 public int getAttributeCount(); 297 298 305 public CharArray getAttributeNamespace(int index); 306 307 314 public CharArray getAttributeLocalName(int index); 315 316 323 public CharArray getAttributePrefix(int index); 324 325 332 public CharArray getAttributeType(int index); 333 334 341 public CharArray getAttributeValue(int index); 342 343 351 public boolean isAttributeSpecified(int index); 352 353 364 public int getNamespaceCount(); 365 366 374 public CharArray getNamespacePrefix(int index); 375 376 384 public CharArray getNamespaceURI(int index); 385 386 391 public NamespaceContext getNamespaceContext(); 392 393 399 public int getEventType(); 400 401 412 public CharArray getText(); 413 414 425 public char[] getTextCharacters(); 426 427 470 public int getTextCharacters(int sourceStart, char[] target, 471 int targetStart, int length) throws XMLStreamException; 472 473 479 public int getTextStart(); 480 481 487 public int getTextLength(); 488 489 494 public String getEncoding(); 495 496 503 public boolean hasText(); 504 505 513 public Location getLocation(); 514 515 525 public CharArray getLocalName(); 526 527 534 public boolean hasName(); 535 536 545 public CharArray getNamespaceURI(); 546 547 554 public CharArray getPrefix(); 555 556 561 public CharArray getVersion(); 562 563 569 public boolean isStandalone(); 570 571 577 public boolean standaloneSet(); 578 579 584 public CharArray getCharacterEncodingScheme(); 585 586 593 public CharArray getPITarget(); 594 595 603 public CharArray getPIData(); 604 } 605 | Popular Tags |