OSDN Git Service

* java/io/FileDescriptor.java: Implement on top of FileChannel.
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Feb 2004 19:12:15 +0000 (19:12 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Feb 2004 19:12:15 +0000 (19:12 +0000)
commit01bd62a613b67cc22b7ac56aae455e5c530ad136
treedac2f13072b5f9eb856b86bd0a047fabdd09419a
parente37121c7752d69b707f91f35b1d134f1d81264cc
* java/io/FileDescriptor.java:  Implement on top of FileChannel.
Remove native methods.

* java/io/natFileDescriptorEcos.cc:  Remove file.
* java/io/natFileDescriptorPosix.cc:  Remove file.
* java/io/natFileDescriptorWin32.cc:  Remove file.
* java/io/FileInputStream.java (ch):  Change type to FileChannelImpl.
(<init>(File)):  Allocate a FileChannelImpl, not a FileDescriptor.
(<init>(FileChannelImpl)):  New package-private constructor.
(<init>(FileDescriptor)):  Extract FileChannelImpl from arg.
(available, close, read, skip):  Implement using FileChannelImpl.
(getFD):  Allocate FileDescriptor if needed.
(getChannel):  Is now trivial.
* java/io/FileOutputStream.java:  Corresponding changes.
* java/io/RandomAccessFile.java:  Corresponding changes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78661 138bc75d-0d04-0410-961f-82ee72b054a4
libjava/java/io/FileDescriptor.java
libjava/java/io/FileInputStream.java
libjava/java/io/FileOutputStream.java
libjava/java/io/RandomAccessFile.java
libjava/java/io/natFileDescriptorEcos.cc [deleted file]
libjava/java/io/natFileDescriptorPosix.cc [deleted file]
libjava/java/io/natFileDescriptorWin32.cc [deleted file]