Add a field for debugging purposes to the stream reader
This commit is contained in:
parent
31fe49b24d
commit
70aee2d733
1 changed files with 2 additions and 1 deletions
|
@ -17,11 +17,12 @@ public class XmlRpcStreamReader {
|
|||
XMLInputFactory inputFactory = XMLInputFactory.newInstance ( );
|
||||
xmlStreamReader = inputFactory.createXMLStreamReader ( inputStream );
|
||||
}
|
||||
|
||||
private String CURRENT_TAG_NAME;
|
||||
public boolean nextTag ( ) throws XMLStreamException {
|
||||
while ( xmlStreamReader.hasNext ( ) ) {
|
||||
int eventType = xmlStreamReader.next ( );
|
||||
if ( eventType == XMLStreamConstants.START_ELEMENT || eventType == XMLStreamConstants.END_ELEMENT ) {
|
||||
CURRENT_TAG_NAME = getLocalName ();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue