Skip to content

Commit 9c6a84e

Browse files
committed
Comments
1 parent 11e8800 commit 9c6a84e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/main/java/org/apache/commons/io/input/BOMInputStream.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -484,13 +484,11 @@ private ByteOrderMark readBom() throws IOException {
484484
}
485485

486486
/**
487-
* This method reads and either preserves or skips the first bytes in the stream. It behaves like the single-byte
488-
* {@code read()} method, either returning a valid byte or -1 to indicate that the initial bytes have been
489-
* processed already.
487+
* Reads and either preserves or skips the first bytes in the stream. This method behaves like the single-byte {@code read()} method, either returning a
488+
* valid byte or -1 to indicate that the initial bytes have been processed already.
490489
*
491-
* @return the byte read (excluding BOM) or -1 if the end of stream
492-
* @throws IOException
493-
* if an I/O error occurs
490+
* @return the byte read (excluding BOM) or -1 if at the end of first bytes.
491+
* @throws IOException if an I/O error occurs
494492
*/
495493
private int readFirstBytes() throws IOException {
496494
getBOM();

0 commit comments

Comments
 (0)