baa61e09ef
2004-07-17 Mark Wielaard <mark@klomp.org> * 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. From-SVN: r84868 |
||
---|---|---|
.. | ||
channels | ||
charset | ||
ChannelInputStream.java | ||
ChannelOutputStream.java | ||
DatagramChannelImpl.java | ||
DatagramChannelSelectionKey.java | ||
FileLockImpl.java | ||
InputStreamChannel.java | ||
natNIOServerSocket.cc | ||
natPipeImplEcos.cc | ||
natPipeImplPosix.cc | ||
natPipeImplWin32.cc | ||
natSelectorImplEcos.cc | ||
natSelectorImplPosix.cc | ||
natSelectorImplWin32.cc | ||
NIOConstants.java | ||
NIODatagramSocket.java | ||
NIOServerSocket.java | ||
NIOSocket.java | ||
OutputStreamChannel.java | ||
PipeImpl.java | ||
SelectionKeyImpl.java | ||
SelectorImpl.java | ||
SelectorProviderImpl.java | ||
ServerSocketChannelImpl.java | ||
ServerSocketChannelSelectionKey.java | ||
SocketChannelImpl.java | ||
SocketChannelSelectionKey.java |