Class JSONFlowLoader

  • All Implemented Interfaces:
    FlowLoader

    public class JSONFlowLoader
    extends Object
    implements FlowLoader
    Flow loader that wraps the routines in JSONFlowUtils
    Version:
    $Revision: $
    Author:
    Mark Hall (mhall{[at]}pentaho{[dot]}com)
    • Constructor Detail

      • JSONFlowLoader

        public JSONFlowLoader()
    • Method Detail

      • setLog

        public void setLog​(Logger log)
        Set a log to use
        Specified by:
        setLog in interface FlowLoader
        Parameters:
        log - log to use
      • getFlowFileExtension

        public String getFlowFileExtension()
        Get the file extension handled by this loader
        Specified by:
        getFlowFileExtension in interface FlowLoader
        Returns:
        the file extension
      • getFlowFileExtensionDescription

        public String getFlowFileExtensionDescription()
        Get the description of the file format handled by this loader
        Specified by:
        getFlowFileExtensionDescription in interface FlowLoader
        Returns:
        the description of the file format handled
      • readFlow

        public Flow readFlow​(File flowFile)
                      throws WekaException
        Read the flow from the supplied file
        Specified by:
        readFlow in interface FlowLoader
        Parameters:
        flowFile - the file to load from
        Returns:
        the Flow read
        Throws:
        WekaException - if a problem occurs