FileDescriptor.java (FileDescriptor(String, int)): Throw FileNotFoundException instead of IOException.

1999-06-10  Warren Levy  <warrenl@cygnus.com>
	* java/io/FileDescriptor.java (FileDescriptor(String, int)):
	Throw FileNotFoundException instead of IOException.
	(open): ditto.
	* java/io/FileInputStream.java (FileInputStream): Doesn't throw
	IOException.
	* java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
	in static field name.

From-SVN: r27473
This commit is contained in:
Warren Levy 1999-06-10 18:52:00 +00:00 committed by Warren Levy
parent 9a726fc16f
commit a21f23fc67
4 changed files with 17 additions and 7 deletions

View file

@ -23,7 +23,7 @@ public class FileInputStream extends InputStream
/* Contains the file descriptor for referencing the actual file. */
private FileDescriptor fd;
public FileInputStream(String name) throws FileNotFoundException, IOException
public FileInputStream(String name) throws FileNotFoundException
{
SecurityManager s = System.getSecurityManager();
if (s != null)
@ -31,7 +31,7 @@ public class FileInputStream extends InputStream
fd = new FileDescriptor(name, FileDescriptor.READ);
}
public FileInputStream(File file) throws FileNotFoundException, IOException
public FileInputStream(File file) throws FileNotFoundException
{
this(file.getPath());
}