Package weka.knowledgeflow
Class JSONFlowLoader
java.lang.Object
weka.knowledgeflow.JSONFlowLoader
- All Implemented Interfaces:
FlowLoader
Flow loader that wraps the routines in JSONFlowUtils
- Version:
- $Revision: $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the file extension handled by this loaderGet the description of the file format handled by this loaderRead the flow from the supplied filereadFlow
(InputStream is) Read the flow from the supplied input streamRead the flow from the supplied readervoid
Set a log to use
-
Field Details
-
EXTENSION
The file exetension for JSON-based flows- See Also:
-
-
Constructor Details
-
JSONFlowLoader
public JSONFlowLoader()
-
-
Method Details
-
setLog
Set a log to use- Specified by:
setLog
in interfaceFlowLoader
- Parameters:
log
- log to use
-
getFlowFileExtension
Get the file extension handled by this loader- Specified by:
getFlowFileExtension
in interfaceFlowLoader
- Returns:
- the file extension
-
getFlowFileExtensionDescription
Get the description of the file format handled by this loader- Specified by:
getFlowFileExtensionDescription
in interfaceFlowLoader
- Returns:
- the description of the file format handled
-
readFlow
Read the flow from the supplied file- Specified by:
readFlow
in interfaceFlowLoader
- Parameters:
flowFile
- the file to load from- Returns:
- the Flow read
- Throws:
WekaException
- if a problem occurs
-
readFlow
Read the flow from the supplied input stream- Specified by:
readFlow
in interfaceFlowLoader
- Parameters:
is
- the input stream to load from- Returns:
- the Flow read
- Throws:
WekaException
-
readFlow
Read the flow from the supplied reader- Specified by:
readFlow
in interfaceFlowLoader
- Parameters:
r
- the reader to load from- Returns:
- the Flow read
- Throws:
WekaException
- if a problem occurs
-