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 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 fromFlow objectWekaException - if a problem occurspublic Flow readFlow(java.io.InputStream is) throws WekaException
readFlow in interface FlowLoaderis - the input stream to load fromFlow objectWekaException - if a problem occurspublic Flow readFlow(java.io.Reader r) throws WekaException
readFlow in interface FlowLoaderr - the reader to load fromFlow objectWekaException - if a problem occurs