Package com.atlassian.bamboo.utils.xml
Class SMInputCursorIterable
java.lang.Object
com.atlassian.bamboo.utils.xml.SMInputCursorIterable
- All Implemented Interfaces:
Iterable<org.codehaus.staxmate.in.SMInputCursor>
public class SMInputCursorIterable
extends Object
implements Iterable<org.codehaus.staxmate.in.SMInputCursor>
Simple wrapper that allows using foreach constructs and guavization of StaxMate cursor API
-
Method Summary
Modifier and TypeMethodDescriptionstatic Iterable<org.codehaus.staxmate.in.SMInputCursor>
fromCursor
(@NotNull org.codehaus.staxmate.in.SMInputCursor cursor) static Iterable<org.codehaus.staxmate.in.SMInputCursor>
fromCursor
(@NotNull org.codehaus.staxmate.in.SMInputCursor cursor, @NotNull org.codehaus.staxmate.in.SMFilter filter) Iterator<org.codehaus.staxmate.in.SMInputCursor>
iterator()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
iterator
-
fromCursor
public static Iterable<org.codehaus.staxmate.in.SMInputCursor> fromCursor(@NotNull @NotNull org.codehaus.staxmate.in.SMInputCursor cursor) throws XMLStreamException - Throws:
XMLStreamException
-
fromCursor
public static Iterable<org.codehaus.staxmate.in.SMInputCursor> fromCursor(@NotNull @NotNull org.codehaus.staxmate.in.SMInputCursor cursor, @NotNull @NotNull org.codehaus.staxmate.in.SMFilter filter) throws XMLStreamException - Throws:
XMLStreamException
-