public class LegacyFlowLoader extends java.lang.Object implements FlowLoader
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXTENSION
File extension for the format handled by this flow loader
|
Constructor and Description |
---|
LegacyFlowLoader()
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFlowFileExtension()
Get the flow file extension of the file format handled by this flow loader
|
java.lang.String |
getFlowFileExtensionDescription()
Get the description of the file format handled by this flow loader
|
Flow |
readFlow(java.io.File flowFile)
Deserialize a legacy flow from the supplied file
|
Flow |
readFlow(java.io.InputStream is)
Deserialize a legacy flow from the supplied input stream
|
Flow |
readFlow(java.io.Reader r)
Deserialize a legacy flow from the supplied reader
|
void |
setLog(Logger log)
Set the 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 fromFlow
objectWekaException
- if a problem occurspublic Flow readFlow(java.io.InputStream is) throws WekaException
readFlow
in interface FlowLoader
is
- the input stream to load fromFlow
objectWekaException
- if a problem occurspublic Flow readFlow(java.io.Reader r) throws WekaException
readFlow
in interface FlowLoader
r
- the reader to load fromFlow
objectWekaException
- if a problem occurs