Class SplitByNumber

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, SizeOfHandler, Stoppable, Serializable

    public class SplitByNumber
    extends AbstractFileSplitter
    Splits the file into a number of equally sized files.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -prefix <adams.core.io.PlaceholderFile> (property: prefix)
        The prefix for the generated files.
        default: ./split
     
    -extension <java.lang.String> (property: extension)
        The file extension to use.
        default: .bin
     
    -num-digits <int> (property: numDigits)
        The number of digits to use for the index of the generated files.
        default: 3
        minimum: 1
     
    -num-files <int> (property: numFiles)
        The number of files to generate.
        default: 1
        minimum: 1
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_NumFiles

        protected int m_NumFiles
        the number of files.
    • Constructor Detail

      • SplitByNumber

        public SplitByNumber()
    • Method Detail

      • setNumFiles

        public void setNumFiles​(int value)
        Sets the number the files.
        Parameters:
        value - the number
      • getNumFiles

        public int getNumFiles()
        Returns the number of files.
        Returns:
        the number
      • numFilesTipText

        public String numFilesTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.