Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1238814

Method readLine of class RandomAccessFile doesn't recognize \\\\\\\\r

XMLWordPrintable

    • 1.2beta3
    • x86, sparc
    • solaris_1, windows_95, windows_nt
    • Not verified

      Shall we regard it as a bug that method readLine of class
      RandomAccessFile fails to treat \\r and \\r\\n as line terminators?

      =========================================================================

      RandomAccessFile.readLine() reads a line of text.
      If the line contains \r\n , it includes only '\r' in the returned String.

      Whereas the documentation says,
      "The line-terminating character(s), if any, are included as part of the string returned."

            dviswanasunw Deepa Viswanathan (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: