Class ZipReadRepository
- java.lang.Object
-
- org.pentaho.reporting.libraries.repository.zipreader.ZipReadRepository
-
- All Implemented Interfaces:
Repository
public class ZipReadRepository extends Object implements Repository
Provides read-only access to ZIP files. The whole zip-file is cached in memory so this input method will fail badly on huge zuip-files.- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description ZipReadRepository(InputStream in)
ZipReadRepository(InputStream in, MimeRegistry mimeRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MimeRegistry
getMimeRegistry()
Returns the repositories MimeRegistry, which is used return basic content-type information about the items stored in this repository.ContentLocation
getRoot()
Returns the repositories root directory entry.
-
-
-
Constructor Detail
-
ZipReadRepository
public ZipReadRepository(InputStream in) throws IOException
- Throws:
IOException
-
ZipReadRepository
public ZipReadRepository(InputStream in, MimeRegistry mimeRegistry) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getRoot
public ContentLocation getRoot() throws ContentIOException
Description copied from interface:Repository
Returns the repositories root directory entry.- Specified by:
getRoot
in interfaceRepository
- Returns:
- the root directory.
- Throws:
ContentIOException
- if an error occurs.
-
getMimeRegistry
public MimeRegistry getMimeRegistry()
Description copied from interface:Repository
Returns the repositories MimeRegistry, which is used return basic content-type information about the items stored in this repository.- Specified by:
getMimeRegistry
in interfaceRepository
- Returns:
- the mime registry.
- See Also:
MimeRegistry
-
-