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