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