Class HPSFPropertiesOnlyDocument

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class HPSFPropertiesOnlyDocument
    extends POIDocument
    A version of POIDocument which allows access to the HPSF Properties, but no other document contents. Normally used when you want to read or alter the Document Properties, without affecting the rest of the file
    • Constructor Detail

      • HPSFPropertiesOnlyDocument

        public HPSFPropertiesOnlyDocument​(POIFSFileSystem fs)
    • Method Detail

      • write

        public void write()
                   throws IOException
        Write out to the currently open file the properties changes, but nothing else
        Specified by:
        write in class POIDocument
        Throws:
        IOException - thrown on errors writing to the file
      • write

        public void write​(File newFile)
                   throws IOException
        Write out, with any properties changes, but nothing else
        Specified by:
        write in class POIDocument
        Parameters:
        newFile - The new File to write to.
        Throws:
        IOException - thrown on errors writing to the file
      • write

        public void write​(OutputStream out)
                   throws IOException
        Write out, with any properties changes, but nothing else
        Specified by:
        write in class POIDocument
        Parameters:
        out - The stream to write to.
        Throws:
        IOException - thrown on errors writing to the stream