Class LineSeparator


  • public final class LineSeparator
    extends Object
    A class to represent line separators in different environments.
    • Field Detail

      • DEFAULT

        public static final LineSeparator DEFAULT
        The default line separator in the current system.
      • UNIX

        public static final LineSeparator UNIX
        The Unix line separator(LF)
      • WINDOWS

        public static final LineSeparator WINDOWS
        The Windows line separator(CRLF)
    • Constructor Detail

      • LineSeparator

        public LineSeparator​(String lineSeparator)
        Create LineSeparator with the specified lineSeparator string.
    • Method Detail

      • value

        public String value()
        Return the string value of this line separator.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object