public class JSONFlowLoader extends Object implements FlowLoader
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTENSION
The file exetension for JSON-based flows
|
| Constructor and Description |
|---|
JSONFlowLoader() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFlowFileExtension()
Get the file extension handled by this loader
|
String |
getFlowFileExtensionDescription()
Get the description of the file format handled by this loader
|
Flow |
readFlow(File flowFile)
Read the flow from the supplied file
|
Flow |
readFlow(InputStream is)
Read the flow from the supplied input stream
|
Flow |
readFlow(Reader r)
Read the flow from the supplied reader
|
void |
setLog(Logger log)
Set a log to use
|
public static final String EXTENSION
public void setLog(Logger log)
setLog in interface FlowLoaderlog - log to usepublic String getFlowFileExtension()
getFlowFileExtension in interface FlowLoaderpublic String getFlowFileExtensionDescription()
getFlowFileExtensionDescription in interface FlowLoaderpublic Flow readFlow(File flowFile) throws WekaException
readFlow in interface FlowLoaderflowFile - the file to load fromWekaException - if a problem occurspublic Flow readFlow(InputStream is) throws WekaException
readFlow in interface FlowLoaderis - the input stream to load fromWekaExceptionpublic Flow readFlow(Reader r) throws WekaException
readFlow in interface FlowLoaderr - the reader to load fromWekaException - if a problem occursCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.