Add a field for debugging purposes to the stream reader

This commit is contained in:
Aria 2023-06-14 03:40:45 -07:00
parent 31fe49b24d
commit 70aee2d733

View file

@ -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;
}
}