Class 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 Detail

      • iterator

        public Iterator<org.codehaus.staxmate.in.SMInputCursor> iterator()
        Specified by:
        iterator in interface Iterable<org.codehaus.staxmate.in.SMInputCursor>
      • 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