Methods Summary |
---|
public void | close()
fStreamReader.close();
|
private int | findNextEvent()
fStreamAdvancedByHasNext = false;
while(fStreamReader.hasNext()){
fCurrentEvent = fStreamReader.next();
if(fStreamFilter.accept(fStreamReader)){
fEventAccepted = true;
return fCurrentEvent;
}
}
//although it seems that IllegalStateException should be thrown when next() is called
//on a stream that has no more items, we have to assume END_DOCUMENT is always accepted
//in order to pass the TCK
if (fCurrentEvent == XMLEvent.END_DOCUMENT)
return fCurrentEvent;
else
return -1;
|
private int | findNextTag()
fStreamAdvancedByHasNext = false;
while(fStreamReader.hasNext()){
fCurrentEvent = fStreamReader.nextTag();
if(fStreamFilter.accept(fStreamReader)){
fEventAccepted = true;
return fCurrentEvent;
}
}
if (fCurrentEvent == XMLEvent.END_DOCUMENT)
return fCurrentEvent;
else
return -1;
|
public int | getAttributeCount()
return fStreamReader.getAttributeCount();
|
public java.lang.String | getAttributeLocalName(int index)
return fStreamReader.getAttributeLocalName(index);
|
public javax.xml.namespace.QName | getAttributeName(int index)
return fStreamReader.getAttributeName(index);
|
public java.lang.String | getAttributeNamespace(int index)
return fStreamReader.getAttributeNamespace(index);
|
public java.lang.String | getAttributePrefix(int index)
return fStreamReader.getAttributePrefix(index);
|
public java.lang.String | getAttributeType(int index)
return fStreamReader.getAttributeType(index);
|
public java.lang.String | getAttributeValue(int index)
return fStreamReader.getAttributeValue(index);
|
public java.lang.String | getAttributeValue(java.lang.String namespaceURI, java.lang.String localName)
return fStreamReader.getAttributeValue(namespaceURI,localName);
|
public java.lang.String | getCharacterEncodingScheme()
return fStreamReader.getCharacterEncodingScheme();
|
public java.lang.String | getElementText()
return fStreamReader.getElementText();
|
public java.lang.String | getEncoding()
return fStreamReader.getEncoding();
|
public int | getEventType()
return fStreamReader.getEventType();
|
public java.lang.String | getLocalName()
return fStreamReader.getLocalName();
|
public javax.xml.stream.Location | getLocation()
return fStreamReader.getLocation();
|
public javax.xml.namespace.QName | getName()
return fStreamReader.getName();
|
public javax.xml.namespace.NamespaceContext | getNamespaceContext()
return fStreamReader.getNamespaceContext();
|
public int | getNamespaceCount()
return fStreamReader.getNamespaceCount();
|
public java.lang.String | getNamespacePrefix(int index)
return fStreamReader.getNamespacePrefix(index);
|
public java.lang.String | getNamespaceURI()
return fStreamReader.getNamespaceURI();
|
public java.lang.String | getNamespaceURI(int index)
return fStreamReader.getNamespaceURI(index);
|
public java.lang.String | getNamespaceURI(java.lang.String prefix)
return fStreamReader.getNamespaceURI(prefix);
|
public java.lang.String | getPIData()
return fStreamReader.getPIData();
|
public java.lang.String | getPITarget()
return fStreamReader.getPITarget();
|
public java.lang.String | getPrefix()
return fStreamReader.getPrefix();
|
public java.lang.Object | getProperty(java.lang.String name)
return fStreamReader.getProperty(name);
|
public java.lang.String | getText()
return fStreamReader.getText();
|
public char[] | getTextCharacters()
return fStreamReader.getTextCharacters();
|
public int | getTextCharacters(int sourceStart, char[] target, int targetStart, int length)
return fStreamReader.getTextCharacters(sourceStart, target,targetStart,length);
|
public int | getTextLength()
return fStreamReader.getTextLength();
|
public int | getTextStart()
return fStreamReader.getTextStart();
|
public java.lang.String | getVersion()
return fStreamReader.getVersion();
|
public boolean | hasName()
return fStreamReader.hasName();
|
public boolean | hasNext()
if (fStreamReader.hasNext()) {
if (!fEventAccepted) {
if ((fCurrentEvent = findNextEvent()) == -1) {
return false;
} else {
fStreamAdvancedByHasNext = true;
}
}
return true;
}
return false;
|
public boolean | hasText()
return fStreamReader.hasText();
|
public boolean | isAttributeSpecified(int index)
return fStreamReader.isAttributeSpecified(index);
|
public boolean | isCharacters()
return fStreamReader.isCharacters();
|
public boolean | isEndElement()
return fStreamReader.isEndElement();
|
public boolean | isStandalone()
return fStreamReader.isStandalone();
|
public boolean | isStartElement()
return fStreamReader.isStartElement();
|
public boolean | isWhiteSpace()
return fStreamReader.isWhiteSpace();
|
public int | next()
if (fStreamAdvancedByHasNext && fEventAccepted) {
fStreamAdvancedByHasNext = false;
return fCurrentEvent;
}
int event = findNextEvent();
if (event != -1) {
return event;
}
throw new IllegalStateException("The stream reader has reached the end of the document, or there are no more "+
" items to return");
|
public int | nextTag()
if (fStreamAdvancedByHasNext && fEventAccepted &&
(fCurrentEvent == XMLEvent.START_ELEMENT || fCurrentEvent == XMLEvent.START_ELEMENT)) {
fStreamAdvancedByHasNext = false;
return fCurrentEvent;
}
int event = findNextTag();
if (event != -1) {
return event;
}
throw new IllegalStateException("The stream reader has reached the end of the document, or there are no more "+
" items to return");
|
public void | require(int type, java.lang.String namespaceURI, java.lang.String localName)
fStreamReader.require(type,namespaceURI,localName);
|
protected void | setStreamFilter(javax.xml.stream.StreamFilter sf)
this.fStreamFilter = sf;
|
public boolean | standaloneSet()
return fStreamReader.standaloneSet();
|