diff options
author | Michael Koch <konqueror@gmx.de> | 2003-05-20 09:13:19 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-05-20 09:13:19 +0000 |
commit | c93aa80414eb376508a8e6dc4ef1d6cf8175535e (patch) | |
tree | 106050eb91d72a5bcb3faae38a265f0b655891b5 /libjava/java/io/File.java | |
parent | c2a40660aabcd9c19af4ddb1b0ee8698a9a954e4 (diff) | |
download | gcc-c93aa80414eb376508a8e6dc4ef1d6cf8175535e.zip gcc-c93aa80414eb376508a8e6dc4ef1d6cf8175535e.tar.gz gcc-c93aa80414eb376508a8e6dc4ef1d6cf8175535e.tar.bz2 |
DataInputStream.java: Reformatted, Replaced < and & with html entitites in documentation.
2003-05-20 Michael Koch <konqueror@gmx.de>
* java/io/DataInputStream.java:
Reformatted, Replaced < and & with html entitites in documentation.
* java/io/File.java:
Reformatted.
* java/io/PrintWriter.java:
Moved class documentation.
From-SVN: r66992
Diffstat (limited to 'libjava/java/io/File.java')
-rw-r--r-- | libjava/java/io/File.java | 69 |
1 files changed, 35 insertions, 34 deletions
diff --git a/libjava/java/io/File.java b/libjava/java/io/File.java index 4872076..da0a9c5 100644 --- a/libjava/java/io/File.java +++ b/libjava/java/io/File.java @@ -151,7 +151,7 @@ public class File implements Serializable, Comparable */ public boolean canRead () { - checkRead(); + checkRead (); return _access (READ); } @@ -171,7 +171,7 @@ public class File implements Serializable, Comparable */ public boolean canWrite () { - checkWrite(); + checkWrite (); return _access (WRITE); } @@ -196,7 +196,7 @@ public class File implements Serializable, Comparable */ public boolean createNewFile() throws IOException { - checkWrite(); + checkWrite (); return performCreate(); } @@ -261,7 +261,7 @@ public class File implements Serializable, Comparable */ public boolean exists () { - checkRead(); + checkRead (); return _access (EXISTS); } @@ -637,7 +637,7 @@ public class File implements Serializable, Comparable */ public boolean isDirectory () { - checkRead(); + checkRead (); return _stat (DIRECTORY); } @@ -653,7 +653,7 @@ public class File implements Serializable, Comparable */ public boolean isFile () { - checkRead(); + checkRead (); return _stat (ISFILE); } @@ -670,7 +670,7 @@ public class File implements Serializable, Comparable */ public boolean isHidden () { - checkRead(); + checkRead (); return _stat (ISHIDDEN); } @@ -689,7 +689,7 @@ public class File implements Serializable, Comparable */ public long lastModified () { - checkRead(); + checkRead (); return attr (MODIFIED); } @@ -703,7 +703,7 @@ public class File implements Serializable, Comparable */ public long length () { - checkRead(); + checkRead (); return attr (LENGTH); } @@ -745,7 +745,7 @@ public class File implements Serializable, Comparable */ public String[] list (FilenameFilter filter) { - checkRead(); + checkRead (); return (String[]) performList (filter, null, String.class); } @@ -769,7 +769,7 @@ public class File implements Serializable, Comparable */ public String[] list () { - checkRead(); + checkRead (); return (String[]) performList (null, null, String.class); } @@ -793,7 +793,7 @@ public class File implements Serializable, Comparable */ public File[] listFiles () { - checkRead(); + checkRead (); return (File[]) performList (null, null, File.class); } @@ -823,7 +823,7 @@ public class File implements Serializable, Comparable */ public File[] listFiles (FilenameFilter filter) { - checkRead(); + checkRead (); return (File[]) performList (filter, null, File.class); } @@ -853,7 +853,7 @@ public class File implements Serializable, Comparable */ public File[] listFiles (FileFilter filter) { - checkRead(); + checkRead (); return (File[]) performList (null, filter, File.class); } @@ -905,7 +905,7 @@ public class File implements Serializable, Comparable */ public boolean mkdir () { - checkWrite(); + checkWrite (); return performMkdir (); } @@ -936,7 +936,7 @@ public class File implements Serializable, Comparable */ public boolean mkdirs () { - checkWrite(); + checkWrite (); if (isDirectory ()) return false; return mkdirs (new File (path)); @@ -987,20 +987,21 @@ public class File implements Serializable, Comparable String dirname = tmpdir; if (dirname == null) throw - new IOException("Cannot determine system temporary directory"); + new IOException ("Cannot determine system temporary directory"); - directory = new File(dirname); - if (!directory.exists()) - throw new IOException("System temporary directory " - + directory.getName() + " does not exist."); + directory = new File (dirname); + if (!directory.exists ()) + throw new IOException ("System temporary directory " + + directory.getName() + " does not exist."); if (!directory.isDirectory()) - throw new IOException("System temporary directory " - + directory.getName() - + " is not really a directory."); + throw new IOException ("System temporary directory " + + directory.getName() + + " is not really a directory."); } if (prefix.length () < 3) throw new IllegalArgumentException ("Prefix too short: " + prefix); + if (suffix == null) suffix = ".tmp"; @@ -1059,7 +1060,7 @@ public class File implements Serializable, Comparable */ public boolean setReadOnly () { - checkWrite(); + checkWrite (); return performSetReadOnly(); } @@ -1089,7 +1090,7 @@ public class File implements Serializable, Comparable { try { - s.checkRead(roots[i].path); + s.checkRead (roots[i].path); } catch (SecurityException sx) { @@ -1220,8 +1221,8 @@ public class File implements Serializable, Comparable String dname = dest.getName(); if (s != null) { - s.checkWrite(sname); - s.checkWrite(dname); + s.checkWrite (sname); + s.checkWrite (dname); } return performRenameTo (dest); } @@ -1249,7 +1250,7 @@ public class File implements Serializable, Comparable */ public boolean setLastModified (long time) { - checkWrite(); + checkWrite (); return performSetLastModified(time); } @@ -1272,11 +1273,11 @@ public class File implements Serializable, Comparable } /** - * Add this File to the set of files to be deleted upon normal - * termination. - * - * @since 1.2 - */ + * Add this File to the set of files to be deleted upon normal + * termination. + * + * @since 1.2 + */ // FIXME: This should use the ShutdownHook API once we implement that. public void deleteOnExit () { |