public class FileObjectRepository extends Object implements org.pentaho.reporting.libraries.repository.UrlRepository, Serializable
| 构造器和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 org.pentaho.reporting.libraries.repository.Repositorypublic org.pentaho.reporting.libraries.repository.ContentLocation getRoot()
throws org.pentaho.reporting.libraries.repository.ContentIOException
getRoot 在接口中 org.pentaho.reporting.libraries.repository.Repositoryorg.pentaho.reporting.libraries.repository.ContentIOException - if an error occurs.public URL getURL() throws MalformedURLException
getURL 在接口中 org.pentaho.reporting.libraries.repository.UrlRepositoryMalformedURLException - if the URL could not be computed.Copyright © 2024 Hitachi Vantara. All rights reserved.