summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/java/nio/channels/FileChannelImpl.java
Commit message (Collapse)AuthorAgeFilesLines
* 2005-03-09 Andrew Haley <aph@redhat.com>aph2005-03-101-12/+88
| | | | | | | | | | | | * gnu/java/nio/channels/FileChannelImpl.java (smallTransferFrom): New. (smallTransferTo): New. (transferFrom): Loop around smallTransferFrom, copying pageSize bytes each time. (transferTo): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96240 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-02-17 Ito Kazumitsu <kaz@maczuka.gcd.org>mkoch2005-02-171-1/+2
| | | | | | | | * gnu/java/nio/channels/FileChannelImpl.java (write(ByteBuffer)): Move the position of the source buffer forward. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95184 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-07-17 Mark Wielaard <mark@klomp.org>mkoch2004-07-171-1/+3
| | | | | | | | | | | | | | | | | * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate when size is smaller. * java/io/RandomAccessFile.java (setLength): Use truncate for shrinking the file and seek plus write for expanding the file. 2004-07-17 Michael Koch <konqueror@gmx.de> * gnu/java/nio/channels/natFileChannelPosix.cc (implTruncate): Always save current position. Only reposition file pointer to where we started if not beyond new lenght. Reposition file pointer to file length if it points beyond the end of file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84868 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-07-17 Michael Koch <konqueror@gmx.de>mkoch2004-07-171-5/+8
| | | | | | | | * gnu/java/nio/channels/FileChannelImpl.java (finalize): Added javadoc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84858 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-05-04 Mark Wielaard <mark@klomp.org>mkoch2004-05-041-0/+5
| | | | | | | | * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81469 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-04-23 Michael Koch <konqueror@gmx.de>mkoch2004-04-231-40/+25
| | | | | | | | | | | | * gnu/java/nio/channels/FileChannelImpl.java (SET, CUR): Unused, removed. (read): Implement here directly. (implRead): Removed. (write): Implement here directly. (implWrite): Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81079 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-04-20 Michael Koch <konqueror@gmx.de>mkoch2004-04-201-27/+42
| | | | | | | | | | | | | | | | | | | | | * gnu/java/nio/FileLockImpl.java (static): Removed, not needed anymore. * gnu/java/nio/channels/FileChannelImpl.java (FileChannelImpl): Made final. (mode): Made private. (READ, WRITE, APPEND): Made public. (EXCL, SYNC, DSYNC): Likewise. (static): Load native JNI library, when needed. (length): Unused, removed. (available): Made public. (implPosition): Throws IOException. (seek): Likewise. (implTruncate): Likewise. (unlock): Likewise. (lock): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80891 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/java/nio/channels/FileChannelImpl.java: New class, renamedbothner2004-02-291-0/+420
from java/nio/channels. Don't depend on FileDescriptor. (in, out, err): New static fields. (mode): New field. (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants from FileDescriptor. (by): Removed MappedByteBuffer field. (map): New working implementation. * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though some code "ported" from natFileDescriptoPosix.cc. * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise. * gnu/java/nio/channels/natFileChannelWin32.cc Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78659 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud