java.io: Need EOF constant

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P5
    • None
    • Affects Version/s: 1.0
    • Component/s: core-libs
    • sparc
    • solaris_2.5

      It would be nice ... if the I/O classes defined an EOF constant that
      people could use to check for EOF rather than using -1,like this:

           while (System.in.read() != EOF)
                  . . .

            Assignee:
            Mark Reinhold
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: