Class XMPSource

java.lang.Object
org.xml.sax.InputSource
edu.harvard.hul.ois.jhove.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 Details

    • _reader

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

    • XMPSource

      public XMPSource(Reader rdr)
      Constructor with Reader.
  • Method Details

    • 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.