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 FlowLoader
log
- log to usepublic java.lang.String getFlowFileExtension()
getFlowFileExtension
in interface FlowLoader
public java.lang.String getFlowFileExtensionDescription()
getFlowFileExtensionDescription
in interface FlowLoader
public Flow readFlow(java.io.File flowFile) throws WekaException
readFlow
in interface FlowLoader
flowFile
- the file to load fromWekaException
- if a problem occurspublic Flow readFlow(java.io.InputStream is) throws WekaException
readFlow
in interface FlowLoader
is
- the input stream to load fromWekaException
public Flow readFlow(java.io.Reader r) throws WekaException
readFlow
in interface FlowLoader
r
- the reader to load fromWekaException
- if a problem occurs