From ce05139c56abbf21a0c8f81150542ed213d07581 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 24 Jul 2002 17:48:41 +0000 Subject: natFileDescriptorWin32.cc (setLength): New method. 2002-07-24 Tom Tromey Tony Kimball * 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 From-SVN: r55715 --- libjava/java/io/RandomAccessFile.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libjava/java/io/RandomAccessFile.java') diff --git a/libjava/java/io/RandomAccessFile.java b/libjava/java/io/RandomAccessFile.java index 418974c091e..81b7050f62d 100644 --- a/libjava/java/io/RandomAccessFile.java +++ b/libjava/java/io/RandomAccessFile.java @@ -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(); -- cgit v1.2.3