Class JSONSaver

    • Constructor Detail

      • JSONSaver

        public JSONSaver()
        Constructor.
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing this Saver.
        Returns:
        a description of the Saver suitable for displaying in the explorer/experimenter gui
      • setOptions

        public void setOptions​(String[] options)
                        throws Exception
        Parses the options for this object.

        Valid options are:

         -i <the input file>
          The input file
         
         -o <the output file>
          The output file
         
         -C <class index>
          The class index (first and last are valid as well).
          (default: last)
         
         -compress
          Compresses the data (uses '.json.gz' as extension instead of '.json')
          (default: off)
         
        Specified by:
        setOptions in interface OptionHandler
        Overrides:
        setOptions in class AbstractFileSaver
        Parameters:
        options - the options to use
        Throws:
        Exception - if setting of options fails
      • classIndexTipText

        public String classIndexTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the explorer/experimenter gui
      • getClassIndex

        public String getClassIndex()
        Get the index of the class attribute.
        Returns:
        the index of the class attribute
      • setClassIndex

        public void setClassIndex​(String value)
        Sets index of the class attribute.
        Parameters:
        value - the index of the class attribute
      • compressOutputTipText

        public String compressOutputTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the explorer/experimenter gui
      • getCompressOutput

        public boolean getCompressOutput()
        Gets whether the output data is compressed.
        Returns:
        true if the output data is compressed
      • setCompressOutput

        public void setCompressOutput​(boolean value)
        Sets whether to compress the output.
        Parameters:
        value - if truee the output will be compressed
      • main

        public static void main​(String[] args)
        Main method.
        Parameters:
        args - should contain the options of a Saver.