Class FileSplitter

java.lang.Object
org.gbif.utils.file.FileSplitter

public class FileSplitter extends Object
A utility to split files into chucks. This is done on file size, but then extended to read to the end of the current line. Therefore a chunksize of 32meg will result in a split files of slightly more (assuming lines are not very long). This is done using NIO libraries for high performance.