Class PDSXMLEventReader

  • All Implemented Interfaces:
    java.util.Iterator<java.lang.Object>, javax.xml.stream.XMLEventReader

    public class PDSXMLEventReader
    extends javax.xml.stream.util.EventReaderDelegate
    Event reader when parsing a PDS4 Product Label.
    Author:
    mcayanan
    • Constructor Summary

      Constructors 
      Constructor Description
      PDSXMLEventReader​(javax.xml.stream.XMLEventReader xsr, java.lang.String root)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      XMLLabelContext getLabelContext()  
      javax.xml.stream.events.XMLEvent nextEvent()  
      • Methods inherited from class javax.xml.stream.util.EventReaderDelegate

        close, getElementText, getParent, getProperty, hasNext, next, nextTag, peek, remove, setParent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • PDSXMLEventReader

        public PDSXMLEventReader​(javax.xml.stream.XMLEventReader xsr,
                                 java.lang.String root)
        Constructor.
        Parameters:
        xsr - An XMLEventReader object.
        root - The name of the root element of the label.
    • Method Detail

      • nextEvent

        public javax.xml.stream.events.XMLEvent nextEvent()
                                                   throws javax.xml.stream.XMLStreamException
        Specified by:
        nextEvent in interface javax.xml.stream.XMLEventReader
        Overrides:
        nextEvent in class javax.xml.stream.util.EventReaderDelegate
        Throws:
        javax.xml.stream.XMLStreamException
      • getLabelContext

        public XMLLabelContext getLabelContext()
        Returns:
        Returns the label context.