Class ZipMultiReportOutput

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.OutputStream currentEntry  
      private java.util.zip.ZipOutputStream zip  
    • Constructor Summary

      Constructors 
      Constructor Description
      ZipMultiReportOutput​(java.io.OutputStream out)
      Creates a new instance based on the given OutputStream.
      ZipMultiReportOutput​(java.util.zip.ZipOutputStream zip)
      Creates a new instance based on the given ZipOutputStream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Closes the underlying resource container.
      java.io.OutputStream createFile​(java.lang.String path)
      Creates a file at the given local path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • zip

        private final java.util.zip.ZipOutputStream zip
      • currentEntry

        private java.io.OutputStream currentEntry
    • Constructor Detail

      • ZipMultiReportOutput

        public ZipMultiReportOutput​(java.util.zip.ZipOutputStream zip)
        Creates a new instance based on the given ZipOutputStream.
        Parameters:
        zip - stream to write file entries to
      • ZipMultiReportOutput

        public ZipMultiReportOutput​(java.io.OutputStream out)
        Creates a new instance based on the given OutputStream.
        Parameters:
        out - stream to write file entries to
    • Method Detail

      • createFile

        public java.io.OutputStream createFile​(java.lang.String path)
                                        throws java.io.IOException
        Description copied from interface: IMultiReportOutput
        Creates a file at the given local path. The returned OutputStream has to be closed before the next document is created.
        Specified by:
        createFile in interface IMultiReportOutput
        Parameters:
        path - local path to the new document
        Returns:
        output for the content
        Throws:
        java.io.IOException - if the creation fails
      • close

        public void close()
                   throws java.io.IOException
        Description copied from interface: IMultiReportOutput
        Closes the underlying resource container.
        Specified by:
        close in interface IMultiReportOutput
        Throws:
        java.io.IOException - if closing fails