Class SplitByLineCount

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

    public class SplitByLineCount
    extends AbstractFileSplitter
    Splits the text file into chunks with the specified maximum of lines.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
    -prefix <> (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
    -max-lines <int> (property: maxLines)
        The maximum number of lines in the generated files.
        default: 1024
        minimum: 1
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_MaxLines

        protected int m_MaxLines
        the maximum number of lines.
    • Constructor Detail

      • SplitByLineCount

        public SplitByLineCount()
    • Method Detail

      • setMaxLines

        public void setMaxLines​(int value)
        Sets the maximum number of lines for the files.
        value - the maximum lines
      • getMaxLines

        public int getMaxLines()
        Returns the maximum number of lines for the files.
        the maximum lines
      • maxLinesTipText

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