Class XMPSource

  • Direct Known Subclasses:
    ByteArrayXMPSource

    public abstract class XMPSource
    extends InputSource
    Class for providing an InputSource to XMPHandler. Only an InputSource based on a Reader is supported. Each module can provide its own subclass of XMPSource. The subclass must provide a way to reset to the beginning and reread the data when makeProperty is called.
    Author:
    Gary McGath
    • Field Detail

      • _reader

        protected Reader _reader
        The Reader on which the InputSource is based.
    • Constructor Detail

      • XMPSource

        public XMPSource​(Reader rdr)
        Constructor with Reader.
    • Method Detail

      • makeProperty

        public Property makeProperty()
                              throws IOException
        Generates a property from the underlying data. The beginning and ending processing instructions are stripped out.
        Throws:
        IOException
      • resetReader

        protected abstract void resetReader()
        Causes reading to begin from the start again. Typically this means creating a new value for _reader that will start over.