aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/nio
diff options
context:
space:
mode:
authorPer Bothner <bothner@gcc.gnu.org>2004-02-29 11:12:15 -0800
committerPer Bothner <bothner@gcc.gnu.org>2004-02-29 11:12:15 -0800
commitef3916ef8e8a15b800e293ed2555b1b60c9f96f3 (patch)
treedac2f13072b5f9eb856b86bd0a047fabdd09419a /libjava/java/nio
parentd5fe0403cc53ebf2b9303d8cb78f305584d02910 (diff)
downloadgcc-ef3916ef8e8a15b800e293ed2555b1b60c9f96f3.zip
gcc-ef3916ef8e8a15b800e293ed2555b1b60c9f96f3.tar.gz
gcc-ef3916ef8e8a15b800e293ed2555b1b60c9f96f3.tar.bz2
FileDescriptor.java: Implement on top of FileChannel.
* 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. From-SVN: r78661
Diffstat (limited to 'libjava/java/nio')
0 files changed, 0 insertions, 0 deletions