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

java.io does not support large files >2GB

XMLWordPrintable

    • 1.2beta4
    • generic, x86, sparc
    • solaris_2.5.1, solaris_2.6, windows_nt
    • Not verified

      SunSoft bug 4109867.

      Java cannot handle files >2GB.

      (1) **API Problems which need immediate attention**

        + The method FileInputStream.available() (for disk files) returns the
          number of bytes remaining in the file as an int. The actual value for
          a large file may not fit in an int (needs a long).

        + The RandomAccessFile class has a skipBytes(int) method,
          rather than the skip(long) method which the InputStreams have.

      (2) Implementation - these methods have problems:

        + java.io.FileInputStream.skip()
        + java.io.FileInputStream.available()
        + java.io.RandomAccessFile.getFilePointer()
        + java.io.RandomAccessFile.length()
        + java.io.RandomAccessFile.setlength() [JDK1.2]
        + java.io.File.length()

            dviswanasunw Deepa Viswanathan (Inactive)
            foliversunw Fred Oliver (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: