Re-merge with Classpath:

* java/util/Comparator (equals): Added.
	* java/io/PipedWriter.java (write): Changed argument to `int'.

	* java/io/FileDescriptor.java (FileDescriptor()): New
	constructor.
	* java/io/File.java (getAbsoluteFile): Doesn't throw IOException.

From-SVN: r45337
This commit is contained in:
Tom Tromey
2001-08-31 22:31:40 +00:00
committed by Tom Tromey
parent eb3ae3e105
commit 4504a65546
5 changed files with 26 additions and 4 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ public class File implements Serializable, Comparable
}
/** @since 1.2 */
public File getAbsoluteFile () throws IOException
public File getAbsoluteFile ()
{
return new File (getAbsolutePath());
}
+5
View File
@@ -43,6 +43,11 @@ public final class FileDescriptor
static final int SET = 0;
static final int CUR = 1;
// This constructor is specified to create an invalid descriptor.
public FileDescriptor ()
{
}
// Open a file. MODE is a combination of the above mode flags.
FileDescriptor (String path, int mode) throws FileNotFoundException
{
+2 -2
View File
@@ -104,9 +104,9 @@ public class PipedWriter extends Writer
* @exception IOException If the stream has not been connected or has
* been closed.
*/
public void write(char b) throws IOException
public void write(int b) throws IOException
{
read_buf[0] = b;
read_buf[0] = (char) (b & 0xffff);
sink.receive (read_buf, 0, 1);
}