Package weka.knowledgeflow
Class LegacyFlowLoader
java.lang.Object
weka.knowledgeflow.LegacyFlowLoader
- All Implemented Interfaces:
FlowLoader
Flow loader that reads legacy .kfml files and translates them to the new
implementation.
- Version:
- $Revision: $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the flow file extension of the file format handled by this flow loaderGet the description of the file format handled by this flow loaderDeserialize a legacy flow from the supplied filereadFlow
(InputStream is) Deserialize a legacy flow from the supplied input streamDeserialize a legacy flow from the supplied readervoid
Set the log to use
-
Field Details
-
EXTENSION
File extension for the format handled by this flow loader- See Also:
-
-
Constructor Details
-
LegacyFlowLoader
public LegacyFlowLoader()Constructor
-
-
Method Details
-
setLog
Set the log to use- Specified by:
setLog
in interfaceFlowLoader
- Parameters:
log
- log to use
-
getFlowFileExtension
Get the flow file extension of the file format handled by this flow loader- Specified by:
getFlowFileExtension
in interfaceFlowLoader
- Returns:
- the file extension
-
getFlowFileExtensionDescription
Get the description of the file format handled by this flow loader- Specified by:
getFlowFileExtensionDescription
in interfaceFlowLoader
- Returns:
- the description of the file format
-
readFlow
Deserialize a legacy flow from the supplied file- Specified by:
readFlow
in interfaceFlowLoader
- Parameters:
flowFile
- the file to load from- Returns:
- the legacy flow translated to a new
Flow
object - Throws:
WekaException
- if a problem occurs
-
readFlow
Deserialize a legacy flow from the supplied input stream- Specified by:
readFlow
in interfaceFlowLoader
- Parameters:
is
- the input stream to load from- Returns:
- the legacy flow translated to a new
Flow
object - Throws:
WekaException
- if a problem occurs
-
readFlow
Deserialize a legacy flow from the supplied reader- Specified by:
readFlow
in interfaceFlowLoader
- Parameters:
r
- the reader to load from- Returns:
- the legacy flow translated to a new
Flow
object - Throws:
WekaException
- if a problem occurs
-