OSDN Git Service

Simplify FileInputStream.skip to match the RI.
authorElliott Hughes <enh@google.com>
Wed, 30 Sep 2009 22:25:29 +0000 (15:25 -0700)
committerElliott Hughes <enh@google.com>
Wed, 30 Sep 2009 22:39:31 +0000 (15:39 -0700)
commit76a477ed7e878fb1193de51ce7caec46b2d1f515
tree918b46b8b8f2464c1fd82f0e0affaaab53660e6c
parent104c282aada8d4eeb049e9768112059151fe6bcb
Simplify FileInputStream.skip to match the RI.

The RI throws IOException on any non-seekable stream, including stdin.
This patch removes harmony's special-case hack for stdin, and the native
cruft that wasn't even necessary if you did want a special hack for
stdin.

Bug: 1542253
libcore/luni/src/main/java/java/io/FileInputStream.java
libcore/luni/src/main/java/org/apache/harmony/luni/platform/IFileSystem.java
libcore/luni/src/main/java/org/apache/harmony/luni/platform/OSFileSystem.java
libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSFileSystem.cpp