Class LineSeparatorDetector


  • public class LineSeparatorDetector
    extends Object
    Automatically detects the line separator type used on a text file. Supports Mac OS (old), Linux/Unix and Windows-style line breaks.
    Author:
    Rene Schneider - initial API and implementation
    • Constructor Detail

      • LineSeparatorDetector

        public LineSeparatorDetector()
        Creates a new instance with default settings.
      • LineSeparatorDetector

        public LineSeparatorDetector​(int aMaxScanSize)
        Creates a new instance.
        Parameters:
        aMaxScanSize - the maximum bytes to scan in a file before giving up