natFileDescriptorWin32.cc (setLength): New method.
2002-07-24 Tom Tromey <tromey@redhat.com> Tony Kimball <alk@pobox.com> * java/io/natFileDescriptorWin32.cc (setLength): New method. * java/io/natFileDescriptorPosix.cc (setLength): New method. * java/io/RandomAccessFile.java (setLength): New method. * java/io/natFileDescriptorEcos.cc (setLength): New method. * java/io/FileDescriptor.java (setLength): New method. Co-Authored-By: Tony Kimball <alk@pobox.com> From-SVN: r55715
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// RandomAccessFile.java
|
||||
|
||||
/* Copyright (C) 1998, 1999, 2001 Free Software Foundation
|
||||
/* Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
@@ -40,6 +40,11 @@ public class RandomAccessFile implements DataOutput, DataInput
|
||||
return fd.getFilePointer();
|
||||
}
|
||||
|
||||
public void setLength (long pos) throws IOException
|
||||
{
|
||||
fd.setLength(pos);
|
||||
}
|
||||
|
||||
public long length () throws IOException
|
||||
{
|
||||
return fd.length();
|
||||
|
||||
Reference in New Issue
Block a user