src/share/classes/java/io/RandomAccessFile.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1994, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -39,20 +39,20 @@
  * created in read/write mode, then output operations are also available;
  * output operations write bytes starting at the file pointer and advance
  * the file pointer past the bytes written. Output operations that write
  * past the current end of the implied array cause the array to be
  * extended. The file pointer can be read by the
- * <code>getFilePointer</code> method and set by the <code>seek</code>
+ * </code>getFilePointer</code> method and set by the </code>seek</code>
  * method.
  * <p>
  * It is generally true of all the reading routines in this class that
  * if end-of-file is reached before the desired number of bytes has been
- * read, an <code>EOFException</code> (which is a kind of
- * <code>IOException</code>) is thrown. If any byte cannot be read for
- * any reason other than end-of-file, an <code>IOException</code> other
- * than <code>EOFException</code> is thrown. In particular, an
- * <code>IOException</code> may be thrown if the stream has been closed.
+ * read, an </code>EOFException</code> (which is a kind of
+ * </code>IOException</code>) is thrown. If any byte cannot be read for
+ * any reason other than end-of-file, an </code>IOException</code> other
+ * than </code>EOFException</code> is thrown. In particular, an
+ * </code>IOException</code> may be thrown if the stream has been closed.
  *
  * @author  unascribed
  * @since   JDK1.0
  */
 

@@ -80,16 +80,16 @@
      * file is to be opened.  The permitted values and their meanings are as
      * specified for the <a
      * href="#mode"><tt>RandomAccessFile(File,String)</tt></a> constructor.
      *
      * <p>
-     * If there is a security manager, its <code>checkRead</code> method
-     * is called with the <code>name</code> argument
+     * If there is a security manager, its </code>checkRead</code> method
+     * is called with the </code>name</code> argument
      * as its argument to see if read access to the file is allowed.
      * If the mode allows writing, the security manager's
-     * <code>checkWrite</code> method
-     * is also called with the <code>name</code> argument
+     * </code>checkWrite</code> method
+     * is also called with the </code>name</code> argument
      * as its argument to see if write access to the file is allowed.
      *
      * @param      name   the system-dependent filename
      * @param      mode   the access <a href="#mode">mode</a>
      * @exception  IllegalArgumentException  if the mode argument is not equal

@@ -101,11 +101,11 @@
      *            <tt>"rw"</tt> but the given string does not denote an
      *            existing, writable regular file and a new regular file of
      *            that name cannot be created, or if some other error occurs
      *            while opening or creating the file
      * @exception  SecurityException         if a security manager exists and its
-     *               <code>checkRead</code> method denies read access to the file
+     *               </code>checkRead</code> method denies read access to the file
      *               or the mode is "rw" and the security manager's
      *               <code>checkWrite</code> method denies write access to the file
      * @see        java.lang.SecurityException
      * @see        java.lang.SecurityManager#checkRead(java.lang.String)
      * @see        java.lang.SecurityManager#checkWrite(java.lang.String)

@@ -847,11 +847,11 @@
      * byte's value for the lower eight bits of the character and setting the
      * high eight bits of the character to zero.  This method does not,
      * therefore, support the full Unicode character set.
      *
      * <p> A line of text is terminated by a carriage-return character
-     * (<code>'&#92;r'</code>), a newline character (<code>'&#92;n'</code>), a
+     * ({@code '\u005Cr'}), a newline character ({@code '\u005Cn'}), a
      * carriage-return character immediately followed by a newline character,
      * or the end of the file.  Line-terminating characters are discarded and
      * are not included as part of the string returned.
      *
      * <p> This method blocks until a newline character is read, a carriage