src/java.desktop/share/classes/javax/imageio/stream/ImageInputStream.java
Print this page
@@ -467,11 +467,11 @@
* If the first byte of a group matches the pattern
* {@code 1111xxxx} or the pattern {@code 10xxxxxx},
* then a {@code UTFDataFormatException} is thrown.
*
* <p> If end of file is encountered at any time during this
- * entire process, then an {@code java.io.EOFException} is thrown.
+ * entire process, then a {@code java.io.EOFException} is thrown.
*
* <p> After every group has been converted to a character by this
* process, the characters are gathered, in the same order in
* which their corresponding groups were read from the input
* stream, to form a {@code String}, which is returned.
@@ -497,11 +497,11 @@
String readUTF() throws IOException;
/**
* Reads {@code len} bytes from the stream, and stores them
* into {@code b} starting at index {@code off}.
- * If the end of the stream is reached, an {@code java.io.EOFException}
+ * If the end of the stream is reached, a {@code java.io.EOFException}
* will be thrown.
*
* <p> The bit offset within the stream is reset to zero before
* the read occurs.
*
@@ -521,11 +521,11 @@
void readFully(byte[] b, int off, int len) throws IOException;
/**
* Reads {@code b.length} bytes from the stream, and stores them
* into {@code b} starting at index {@code 0}.
- * If the end of the stream is reached, an {@code java.io.EOFException}
+ * If the end of the stream is reached, a {@code java.io.EOFException}
* will be thrown.
*
* <p> The bit offset within the stream is reset to zero before
* the read occurs.
*
@@ -541,12 +541,12 @@
/**
* Reads {@code len} shorts (signed 16-bit integers) from the
* stream according to the current byte order, and
* stores them into {@code s} starting at index
- * {@code off}. If the end of the stream is reached, an
- * {@code java.io.EOFException} will be thrown.
+ * {@code off}. If the end of the stream is reached,
+ * a {@code java.io.EOFException} will be thrown.
*
* <p> The bit offset within the stream is reset to zero before
* the read occurs.
*
* @param s an array of shorts to be written to.
@@ -566,12 +566,12 @@
/**
* Reads {@code len} chars (unsigned 16-bit integers) from the
* stream according to the current byte order, and
* stores them into {@code c} starting at index
- * {@code off}. If the end of the stream is reached, an
- * {@code java.io.EOFException} will be thrown.
+ * {@code off}. If the end of the stream is reached,
+ * a {@code java.io.EOFException} will be thrown.
*
* <p> The bit offset within the stream is reset to zero before
* the read occurs.
*
* @param c an array of chars to be written to.
@@ -591,12 +591,12 @@
/**
* Reads {@code len} ints (signed 32-bit integers) from the
* stream according to the current byte order, and
* stores them into {@code i} starting at index
- * {@code off}. If the end of the stream is reached, an
- * {@code java.io.EOFException} will be thrown.
+ * {@code off}. If the end of the stream is reached,
+ * a {@code java.io.EOFException} will be thrown.
*
* <p> The bit offset within the stream is reset to zero before
* the read occurs.
*
* @param i an array of ints to be written to.
@@ -616,12 +616,12 @@
/**
* Reads {@code len} longs (signed 64-bit integers) from the
* stream according to the current byte order, and
* stores them into {@code l} starting at index
- * {@code off}. If the end of the stream is reached, an
- * {@code java.io.EOFException} will be thrown.
+ * {@code off}. If the end of the stream is reached,
+ * a {@code java.io.EOFException} will be thrown.
*
* <p> The bit offset within the stream is reset to zero before
* the read occurs.
*
* @param l an array of longs to be written to.
@@ -642,11 +642,11 @@
/**
* Reads {@code len} floats (32-bit IEEE single-precision
* floats) from the stream according to the current byte order,
* and stores them into {@code f} starting at
* index {@code off}. If the end of the stream is reached,
- * an {@code java.io.EOFException} will be thrown.
+ * a {@code java.io.EOFException} will be thrown.
*
* <p> The bit offset within the stream is reset to zero before
* the read occurs.
*
* @param f an array of floats to be written to.
@@ -667,11 +667,11 @@
/**
* Reads {@code len} doubles (64-bit IEEE double-precision
* floats) from the stream according to the current byte order,
* and stores them into {@code d} starting at
* index {@code off}. If the end of the stream is reached,
- * an {@code java.io.EOFException} will be thrown.
+ * a {@code java.io.EOFException} will be thrown.
*
* <p> The bit offset within the stream is reset to zero before
* the read occurs.
*
* @param d an array of doubles to be written to.
@@ -779,11 +779,11 @@
* Note that the result of {@code readBits(32)} may thus not
* be equal to that of {@code readInt()} if a reverse network
* byte order is being used (i.e., {@code getByteOrder() == false}).
*
* <p> If the end of the stream is encountered before all the bits
- * have been read, an {@code java.io.EOFException} is thrown.
+ * have been read, a {@code java.io.EOFException} is thrown.
*
* @param numBits the number of bits to read, as an {@code int}
* between 0 and 64, inclusive.
* @return the bitstring, as a {@code long} with the last bit
* read stored in the least significant bit.
@@ -846,12 +846,12 @@
*
* <p> An {@code IndexOutOfBoundsException} will be thrown if
* {@code pos} is smaller than the flushed position (as
* returned by {@code getflushedPosition}).
*
- * <p> It is legal to seek past the end of the file; an
- * {@code java.io.EOFException} will be thrown only if a read is
+ * <p> It is legal to seek past the end of the file;
+ * a {@code java.io.EOFException} will be thrown only if a read is
* performed.
*
* @param pos a {@code long} containing the desired file
* pointer position.
*