mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 16:29:51 +00:00
Add XmlPullUtil.optSkipMultiple() and use it where possible.
This commit is contained in:
parent
30cc003038
commit
1587f7fa9f
2 changed files with 10 additions and 14 deletions
|
@ -106,6 +106,12 @@ public final class XmlPullUtil {
|
|||
requireSkip(pp, tagName);
|
||||
}
|
||||
|
||||
public static void optSkipMultiple(final XmlPullParser pp, final String tagName)
|
||||
throws XmlPullParserException, IOException {
|
||||
while (test(pp, tagName))
|
||||
requireSkip(pp, tagName);
|
||||
}
|
||||
|
||||
public static void next(final XmlPullParser pp) throws XmlPullParserException, IOException {
|
||||
skipSubTree(pp);
|
||||
pp.next();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue