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:
@@ -42,7 +42,7 @@ public final class FileDescriptor
|
||||
static final int CUR = 1;
|
||||
|
||||
// Open a file. MODE is a combination of the above mode flags.
|
||||
FileDescriptor (String path, int mode) throws IOException
|
||||
FileDescriptor (String path, int mode) throws FileNotFoundException
|
||||
{
|
||||
fd = open (path, mode);
|
||||
}
|
||||
@@ -52,7 +52,7 @@ public final class FileDescriptor
|
||||
fd = -1;
|
||||
}
|
||||
|
||||
native int open (String path, int mode) throws IOException;
|
||||
native int open (String path, int mode) throws FileNotFoundException;
|
||||
native void write (int b) throws IOException;
|
||||
native void write (byte[] b, int offset, int len)
|
||||
throws IOException, NullPointerException, IndexOutOfBoundsException;
|
||||
|
||||
Reference in New Issue
Block a user