Class RepositoryFileBundle
- java.lang.Object
-
- org.pentaho.platform.plugin.services.importexport.RepositoryFileBundle
-
- All Implemented Interfaces:
Serializable
,ImportSource.IRepositoryFileBundle
public class RepositoryFileBundle extends Object implements ImportSource.IRepositoryFileBundle, Serializable
AnImportSource.IRepositoryFileBundle
that uses temporary files.- Author:
- mlowery
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RepositoryFileBundle(org.pentaho.platform.api.repository2.unified.RepositoryFile file, org.pentaho.platform.api.repository2.unified.RepositoryFileAcl acl, String path, File tmpFile, String charset, String mimeType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
org.pentaho.platform.api.repository2.unified.RepositoryFileAcl
getAcl()
String
getCharset()
Null for folders or binary types.org.pentaho.platform.api.repository2.unified.RepositoryFile
getFile()
InputStream
getInputStream()
Gets the stream (if !getFile().isFolder()).String
getMimeType()
String
getPath()
Path to file.int
hashCode()
void
setPath(String path)
-
-
-
Method Detail
-
getAcl
public org.pentaho.platform.api.repository2.unified.RepositoryFileAcl getAcl()
- Specified by:
getAcl
in interfaceImportSource.IRepositoryFileBundle
-
getFile
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile()
- Specified by:
getFile
in interfaceImportSource.IRepositoryFileBundle
-
getInputStream
public InputStream getInputStream() throws IOException
Description copied from interface:ImportSource.IRepositoryFileBundle
Gets the stream (if !getFile().isFolder()).- Specified by:
getInputStream
in interfaceImportSource.IRepositoryFileBundle
- Throws:
IOException
-
getPath
public String getPath()
Description copied from interface:ImportSource.IRepositoryFileBundle
Path to file. Will be appended to destination folder path to create absolute path.- Specified by:
getPath
in interfaceImportSource.IRepositoryFileBundle
-
setPath
public void setPath(String path)
- Specified by:
setPath
in interfaceImportSource.IRepositoryFileBundle
-
getCharset
public String getCharset()
Description copied from interface:ImportSource.IRepositoryFileBundle
Null for folders or binary types.- Specified by:
getCharset
in interfaceImportSource.IRepositoryFileBundle
-
getMimeType
public String getMimeType()
- Specified by:
getMimeType
in interfaceImportSource.IRepositoryFileBundle
-
-