|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.libraries.repository.file.FileRepository
public class FileRepository
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.
Constructor Summary | |
---|---|
FileRepository(java.io.File file)
Creates a new repository for the given file. |
|
FileRepository(java.io.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. |
java.net.URL |
getURL()
Returns the URL that represents this repository. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileRepository(java.io.File file) throws ContentIOException
file
- the directory, which should form the root of the repository.
ContentIOException
- if an error prevents the repository creation.public FileRepository(java.io.File file, MimeRegistry mimeRegistry) throws ContentIOException
file
- the directory, which should form the root of the repository.mimeRegistry
- the mime registry to be used.
ContentIOException
- if an error prevents the repository creation.Method Detail |
---|
public MimeRegistry getMimeRegistry()
getMimeRegistry
in interface Repository
MimeRegistry
public ContentLocation getRoot() throws ContentIOException
getRoot
in interface Repository
ContentIOException
- if an error occurs.public java.net.URL getURL() throws java.net.MalformedURLException
getURL
in interface UrlRepository
java.net.MalformedURLException
- if the URL could not be computed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |