?? StandardLineSeparator

java.lang.Object
java.lang.Enum<StandardLineSeparator>
org.apache.commons.io.StandardLineSeparator
????????:
Serializable, Comparable<StandardLineSeparator>, java.lang.constant.Constable

Enumerates standard line separators: CR, CRLF, LF.
???????:
2.9.0
  • ????????

    • CR

      public static final StandardLineSeparator CR
      Carriage return. This is the line ending used on Macos 9 and earlier.
    • CRLF

      public static final StandardLineSeparator CRLF
      Carriage return followed by line feed. This is the line ending used on Windows.
    • LF

      public static final StandardLineSeparator LF
      Line feed. This is the line ending used on Linux and Macos X and later.
  • ??????

    • values

      public static StandardLineSeparator[] values()
      ???????????????, ??????????????
      ??:
      ???????????????????????????
    • valueOf

      public static StandardLineSeparator valueOf(String name)
      ?????????????????? ??????????????????? ????????(?????? ??????)
      ??:
      name - ????????????
      ??:
      ?????????????
      ??:
      IllegalArgumentException - ??????????????????
      NullPointerException - ???????
    • getBytes

      public byte[] getBytes(Charset charset)
      Gets the bytes for this instance encoded using the given Charset.
      ??:
      charset - the encoding Charset.
      ??:
      the bytes for this instance encoded using the given Charset.
    • getString

      public String getString()
      Gets the String value of this instance.
      ??:
      the String value of this instance.