()
| 1374 | } |
| 1375 | |
| 1376 | public String nextText() throws XmlPullParserException, IOException { |
| 1377 | if (type != START_TAG) |
| 1378 | exception("precondition: START_TAG"); |
| 1379 | |
| 1380 | next(); |
| 1381 | |
| 1382 | String result; |
| 1383 | |
| 1384 | if (type == TEXT) { |
| 1385 | result = getText(); |
| 1386 | next(); |
| 1387 | } |
| 1388 | else |
| 1389 | result = ""; |
| 1390 | |
| 1391 | if (type != END_TAG) |
| 1392 | exception("END_TAG expected"); |
| 1393 | |
| 1394 | return result; |
| 1395 | } |
| 1396 | |
| 1397 | public void setFeature(String feature, boolean value) |
| 1398 | throws XmlPullParserException { |