Class FileRepository

java.lang.Object
org.pentaho.reporting.libraries.repository.file.FileRepository
All Implemented Interfaces:
Serializable, Repository, UrlRepository

public class FileRepository extends Object implements UrlRepository, Serializable
A file-repository uses a subset of the local filesystem to provide a repository view on top of it. This repository type is the most commonly used repository, as most applications are allowed to access the local filsystem.
Author:
Thomas Morgner
See Also:
  • Constructor Details

    • FileRepository

      public FileRepository(File file) throws ContentIOException
      Creates a new repository for the given file. The file must point to a directory. This constructor uses the default mime-registry.
      Parameters:
      file - the directory, which should form the root of the repository.
      Throws:
      ContentIOException - if an error prevents the repository creation.
    • FileRepository

      public FileRepository(File file, MimeRegistry mimeRegistry) throws ContentIOException
      Creates a new repository for the given file. The file must point to a directory.
      Parameters:
      file - the directory, which should form the root of the repository.
      mimeRegistry - the mime registry to be used.
      Throws:
      ContentIOException - if an error prevents the repository creation.
  • Method Details