Class RepositoryFileStreamProvider
- java.lang.Object
-
- org.pentaho.platform.web.http.api.resources.RepositoryFileStreamProvider
-
- All Implemented Interfaces:
Serializable
,org.pentaho.platform.api.repository2.unified.IStreamListener
,org.pentaho.platform.api.scheduler2.IBackgroundExecutionStreamProvider
public class RepositoryFileStreamProvider extends Object implements org.pentaho.platform.api.scheduler2.IBackgroundExecutionStreamProvider, org.pentaho.platform.api.repository2.unified.IStreamListener
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description String
appendDateFormat
String
inputFilePath
String
outputFilePath
-
Constructor Summary
Constructors Constructor Description RepositoryFileStreamProvider()
RepositoryFileStreamProvider(String inputFilePath, String outputFilePath, boolean autoCreateUniqueFilename)
RepositoryFileStreamProvider(String inputFilePath, String outputFilePath, boolean autoCreateUniqueFilename, String appendDateFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
autoCreateUniqueFilename()
void
fileCreated(String filePath)
String
getAppendDateFormat()
String
getInputFilePath()
InputStream
getInputStream()
String
getMimeType()
String
getOutputFilePath()
String
getOutputPath()
OutputStream
getOutputStream()
org.pentaho.platform.api.action.IStreamingAction
getStreamingAction()
void
setAppendDateFormat(String appendDateFormat)
void
setInputFilePath(String filePath)
void
setOutputFilePath(String filePath)
void
setStreamingAction(org.pentaho.platform.api.action.IStreamingAction streamingAction)
String
toString()
-
-
-
Constructor Detail
-
RepositoryFileStreamProvider
public RepositoryFileStreamProvider(String inputFilePath, String outputFilePath, boolean autoCreateUniqueFilename)
-
RepositoryFileStreamProvider
public RepositoryFileStreamProvider(String inputFilePath, String outputFilePath, boolean autoCreateUniqueFilename, String appendDateFormat)
-
RepositoryFileStreamProvider
public RepositoryFileStreamProvider()
-
-
Method Detail
-
getStreamingAction
public org.pentaho.platform.api.action.IStreamingAction getStreamingAction()
-
setStreamingAction
public void setStreamingAction(org.pentaho.platform.api.action.IStreamingAction streamingAction)
- Specified by:
setStreamingAction
in interfaceorg.pentaho.platform.api.scheduler2.IBackgroundExecutionStreamProvider
-
getOutputPath
public String getOutputPath()
- Specified by:
getOutputPath
in interfaceorg.pentaho.platform.api.scheduler2.IBackgroundExecutionStreamProvider
-
getMimeType
public String getMimeType()
- Specified by:
getMimeType
in interfaceorg.pentaho.platform.api.scheduler2.IBackgroundExecutionStreamProvider
-
getOutputStream
public OutputStream getOutputStream() throws Exception
- Specified by:
getOutputStream
in interfaceorg.pentaho.platform.api.scheduler2.IBackgroundExecutionStreamProvider
- Throws:
Exception
-
fileCreated
public void fileCreated(String filePath)
- Specified by:
fileCreated
in interfaceorg.pentaho.platform.api.repository2.unified.IStreamListener
-
getOutputFilePath
public String getOutputFilePath()
-
setOutputFilePath
public void setOutputFilePath(String filePath)
- Specified by:
setOutputFilePath
in interfaceorg.pentaho.platform.api.scheduler2.IBackgroundExecutionStreamProvider
-
getInputFilePath
public String getInputFilePath()
-
setInputFilePath
public void setInputFilePath(String filePath)
-
getAppendDateFormat
public String getAppendDateFormat()
-
setAppendDateFormat
public void setAppendDateFormat(String appendDateFormat)
-
getInputStream
public InputStream getInputStream() throws Exception
- Specified by:
getInputStream
in interfaceorg.pentaho.platform.api.scheduler2.IBackgroundExecutionStreamProvider
- Throws:
Exception
-
autoCreateUniqueFilename
public boolean autoCreateUniqueFilename()
-
-