Class SplitBySize

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

    public class SplitBySize
    extends AbstractFileSplitterWithBinarySupport
    Splits the file into chunks with the specified maximum size.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
        min-user-mode: Expert
     
    -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
     
    -file-type <TEXT|BINARY> (property: fileType)
        Defines how to treat the file(s).
        default: TEXT
     
    -buffer-size <int> (property: bufferSize)
        The size of byte-buffer used for reading the content.
        default: 1024
        minimum: 1
     
    -max-size <long> (property: maxSize)
        The maximum size of the generated files.
        default: 1048576
        minimum: 1
     
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form