org.pentaho.reporting.libraries.repository.file
public class FileRepository extends Object implements UrlRepository, Serializable
| Constructor Summary | |
|---|---|
| FileRepository(File file)
Creates a new repository for the given file. | |
| FileRepository(File file, MimeRegistry mimeRegistry)
Creates a new repository for the given file. | |
| Method Summary | |
|---|---|
| MimeRegistry | getMimeRegistry()
Returns the mime-registry for the repository.
|
| ContentLocation | getRoot()
Returns the repositories root directory entry.
|
| URL | getURL()
Returns the URL that represents this repository. |
Parameters: file the directory, which should form the root of the repository.
Throws: ContentIOException if an error prevents the repository creation.
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.
Returns: the mime-registry.
Returns: the root directory.
Throws: ContentIOException if an error occurs.
Returns: the repository's URL.
Throws: MalformedURLException if the URL could not be computed.