public class RepositoryFileBundle extends Object implements ImportSource.IRepositoryFileBundle, Serializable
ImportSource.IRepositoryFileBundle
that uses temporary
files.Constructor and 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) |
Modifier and Type | Method and 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) |
public org.pentaho.platform.api.repository2.unified.RepositoryFileAcl getAcl()
getAcl
in interface ImportSource.IRepositoryFileBundle
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile()
getFile
in interface ImportSource.IRepositoryFileBundle
public InputStream getInputStream() throws IOException
ImportSource.IRepositoryFileBundle
getInputStream
in interface ImportSource.IRepositoryFileBundle
IOException
public String getPath()
ImportSource.IRepositoryFileBundle
getPath
in interface ImportSource.IRepositoryFileBundle
public void setPath(String path)
setPath
in interface ImportSource.IRepositoryFileBundle
public String getCharset()
ImportSource.IRepositoryFileBundle
getCharset
in interface ImportSource.IRepositoryFileBundle
public String getMimeType()
getMimeType
in interface ImportSource.IRepositoryFileBundle
Copyright © 2018 Hitachi Vantara. All rights reserved.