Class StreamReader.End

java.lang.Object
org.simpleframework.xml.stream.EventToken
org.simpleframework.xml.stream.StreamReader.End
All Implemented Interfaces:
Iterable<Attribute>, EventNode
Enclosing class:
StreamReader

private static class StreamReader.End extends EventToken
The End object is used to represent the end of an element. It is used by the core reader to determine which nodes are in context and which ones are out of context. This allows the input nodes to determine if it can read any more children.
  • Constructor Details

    • End

      private End()
  • Method Details

    • isEnd

      public boolean isEnd()
      This is true as this event represents an element end. Such events are required by the core reader to determine if a node is still in context. This helps to determine if there are any more children to be read from a specific node.
      Specified by:
      isEnd in interface EventNode
      Overrides:
      isEnd in class EventToken
      Returns:
      this returns true as this token represents an end