Class XMLWrapperStream

java.lang.Object
java.io.InputStream
edu.harvard.hul.ois.jhove.XMLWrapperStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class XMLWrapperStream extends InputStream
This class serves to provide an InputStream for an XML fragment (e.g., embedded XMP metadata).
Author:
Gary McGath
  • Constructor Details

    • XMLWrapperStream

      public XMLWrapperStream(InputStream wrappedStream, String rootName, String version, String encoding, String standalone)
      Constructor.
      Parameters:
      wrappedStream - The stream which this stream will subsume.
      rootName - The name of the root element. May be null if wrappedStream already contains a root element.
      version - The XML version. Should be null or "1.0" unless there's a really good reason.
      encoding - The name of the character encoding. May be null.
      standalone - The value of the standalone attribute. May be null.
    • XMLWrapperStream

      public XMLWrapperStream(InputStream wrappedStream)
      Constructor. Equivalent to XMLWrapperStream (wrappedStream, null, null, null, null)
      Parameters:
      wrappedStream - The stream which this stream will subsume.
    • XMLWrapperStream

      public XMLWrapperStream(InputStream wrappedStream, String rootName)
      Constructor. Equivalent to XMLWrapperStream (wrappedStream, rootName, null, null, null)
      Parameters:
      wrappedStream - The stream which this stream will subsume.
      rootName - The name of the root element. May be null.
  • Method Details