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

(fs) Files.newInputStream(...).skip(n) should allow skipping beyond file size

XMLWordPrintable

    • 14
    • b08

        ChannelInputStream.skip(long) needs to be re-implemented to support skipping beyond the current size of the file. It should also allow backward skipping to a position at or after the beginning of the stream. This will make it consistent with FileInputStream.skip(n) and FileChannel.position(p).

        In addition, the test added by JDK-8227080 should be moved from Files/Misc.java to another test, maybe InputStreamTest.java.

              bpb Brian Burkhalter
              bpb Brian Burkhalter
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: