public class FileObjectRepository extends Object implements org.pentaho.reporting.libraries.repository.UrlRepository, Serializable
Constructor and Description |
---|
FileObjectRepository(org.apache.commons.vfs2.FileObject file)
Creates a new repository for the given file.
|
FileObjectRepository(org.apache.commons.vfs2.FileObject file,
org.pentaho.reporting.libraries.repository.MimeRegistry mimeRegistry)
Creates a new repository for the given file.
|
Modifier and Type | Method and Description |
---|---|
org.pentaho.reporting.libraries.repository.MimeRegistry |
getMimeRegistry()
Returns the mime-registry for the repository.
|
org.pentaho.reporting.libraries.repository.ContentLocation |
getRoot()
Returns the repositories root directory entry.
|
URL |
getURL()
Returns the URL that represents this repository.
|
public FileObjectRepository(org.apache.commons.vfs2.FileObject file) throws org.pentaho.reporting.libraries.repository.ContentIOException
file
- the directory, which should form the root of the repository.org.pentaho.reporting.libraries.repository.ContentIOException
- if an error prevents the repository creation.public FileObjectRepository(org.apache.commons.vfs2.FileObject file, org.pentaho.reporting.libraries.repository.MimeRegistry mimeRegistry) throws org.pentaho.reporting.libraries.repository.ContentIOException
file
- the directory, which should form the root of the repository.mimeRegistry
- the mime registry to be used.org.pentaho.reporting.libraries.repository.ContentIOException
- if an error prevents the repository creation.public org.pentaho.reporting.libraries.repository.MimeRegistry getMimeRegistry()
getMimeRegistry
in interface org.pentaho.reporting.libraries.repository.Repository
public org.pentaho.reporting.libraries.repository.ContentLocation getRoot() throws org.pentaho.reporting.libraries.repository.ContentIOException
getRoot
in interface org.pentaho.reporting.libraries.repository.Repository
org.pentaho.reporting.libraries.repository.ContentIOException
- if an error occurs.public URL getURL() throws MalformedURLException
getURL
in interface org.pentaho.reporting.libraries.repository.UrlRepository
MalformedURLException
- if the URL could not be computed.Copyright © 2019 Hitachi Vantara. All rights reserved.