< prev index next >

src/java.desktop/share/classes/javax/imageio/stream/IIOByteBuffer.java

Print this page

        

@@ -25,18 +25,18 @@
 
 package javax.imageio.stream;
 
 /**
  * A class representing a mutable reference to an array of bytes and
- * an offset and length within that array.  <code>IIOByteBuffer</code>
- * is used by <code>ImageInputStream</code> to supply a sequence of bytes
+ * an offset and length within that array.  {@code IIOByteBuffer}
+ * is used by {@code ImageInputStream} to supply a sequence of bytes
  * to the caller, possibly with fewer copies than using the conventional
- * <code>read</code> methods that take a user-supplied byte array.
+ * {@code read} methods that take a user-supplied byte array.
  *
- * <p> The byte array referenced by an <code>IIOByteBuffer</code> will
+ * <p> The byte array referenced by an {@code IIOByteBuffer} will
  * generally be part of an internal data structure belonging to an
- * <code>ImageReader</code> implementation; its contents should be
+ * {@code ImageReader} implementation; its contents should be
  * considered read-only and must not be modified.
  *
  */
 public class IIOByteBuffer {
 

@@ -45,11 +45,11 @@
     private int offset;
 
     private int length;
 
     /**
-     * Constructs an <code>IIOByteBuffer</code> that references a
+     * Constructs an {@code IIOByteBuffer} that references a
      * given byte array, offset, and length.
      *
      * @param data a byte array.
      * @param offset an int offset within the array.
      * @param length an int specifying the length of the data of

@@ -62,11 +62,11 @@
     }
 
     /**
      * Returns a reference to the byte array.  The returned value should
      * be treated as read-only, and only the portion specified by the
-     * values of <code>getOffset</code> and <code>getLength</code> should
+     * values of {@code getOffset} and {@code getLength} should
      * be used.
      *
      * @return a byte array reference.
      *
      * @see #getOffset

@@ -77,11 +77,11 @@
         return data;
     }
 
     /**
      * Updates the array reference that will be returned by subsequent calls
-     * to the <code>getData</code> method.
+     * to the {@code getData} method.
      *
      * @param data a byte array reference containing the new data value.
      *
      * @see #getData
      */

@@ -89,11 +89,11 @@
         this.data = data;
     }
 
     /**
      * Returns the offset within the byte array returned by
-     * <code>getData</code> at which the data of interest start.
+     * {@code getData} at which the data of interest start.
      *
      * @return an int offset.
      *
      * @see #getData
      * @see #getLength

@@ -103,11 +103,11 @@
         return offset;
     }
 
     /**
      * Updates the value that will be returned by subsequent calls
-     * to the <code>getOffset</code> method.
+     * to the {@code getOffset} method.
      *
      * @param offset an int containing the new offset value.
      *
      * @see #getOffset
      */

@@ -115,11 +115,11 @@
         this.offset = offset;
     }
 
     /**
      * Returns the length of the data of interest within the byte
-     * array returned by <code>getData</code>.
+     * array returned by {@code getData}.
      *
      * @return an int length.
      *
      * @see #getData
      * @see #getOffset

@@ -129,11 +129,11 @@
         return length;
     }
 
     /**
      * Updates the value that will be returned by subsequent calls
-     * to the <code>getLength</code> method.
+     * to the {@code getLength} method.
      *
      * @param length an int containing the new length value.
      *
      * @see #getLength
      */
< prev index next >