Class ZipRepository

java.lang.Object
org.pentaho.reporting.libraries.repository.zip.ZipRepository
All Implemented Interfaces:
Repository

public class ZipRepository extends java.lang.Object implements Repository
A read-write repository based on ZIP streams. The repository can be created using a existing zip file as initial content. The repository will be fully buffered, so nothing is written until the whole repository is closed. For a streaming solution use the zipwriter-repository instead.
Author:
Thomas Morgner
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    ZipRepository(java.io.InputStream in)
     
    ZipRepository(java.io.InputStream in, MimeRegistry mimeRegistry)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the repositories MimeRegistry, which is used return basic content-type information about the items stored in this repository.
    Returns the repositories root directory entry.
    void
    write(java.io.OutputStream outputStream)
     
    void
    writeToZipStream(java.util.zip.ZipOutputStream zipOutputStream, Repository repository)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ZipRepository

      public ZipRepository()
    • ZipRepository

      public ZipRepository(MimeRegistry mimeRegistry)
    • ZipRepository

      public ZipRepository(java.io.InputStream in) throws java.io.IOException
      Throws:
      java.io.IOException
    • ZipRepository

      public ZipRepository(java.io.InputStream in, MimeRegistry mimeRegistry) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details