@@ -83,7 +83,7 @@ public interface DataHandle<L extends Location> extends WrapperPlugin<L>,
8383 void setLength (long length ) throws IOException ;
8484
8585 /**
86- * Gets the number of bytes which can be safely read from, or written to, the
86+ * Gets the number of bytes which can be read from, or written to, the
8787 * data handle, bounded by the specified number of bytes.
8888 * <p>
8989 * In the case of reading, attempting to read the returned number of bytes is
@@ -104,9 +104,9 @@ public interface DataHandle<L extends Location> extends WrapperPlugin<L>,
104104 * guaranteed not to expand the length of the handle; i.e., the write will
105105 * only overwrite bytes already within the handle's bounds.
106106 * </p>
107- *
107+ *
108108 * @param count Desired number of bytes to read/write.
109- * @return The actual number of bytes which could be safely read/written,
109+ * @return The actual number of bytes which could be read/written,
110110 * which might be less than the requested value.
111111 * @throws IOException If something goes wrong with the check.
112112 */
@@ -151,14 +151,14 @@ default boolean ensureWritable(final long count) throws IOException {
151151
152152 /**
153153 * Sets the byte order of the stream.
154- *
154+ *
155155 * @param order Order to set.
156156 */
157157 void setOrder (ByteOrder order );
158158
159159 /**
160160 * Returns true iff the stream's order is {@link ByteOrder#BIG_ENDIAN}.
161- *
161+ *
162162 * @see #getOrder()
163163 */
164164 default boolean isBigEndian () {
@@ -167,7 +167,7 @@ default boolean isBigEndian() {
167167
168168 /**
169169 * Returns true iff the stream's order is {@link ByteOrder#LITTLE_ENDIAN}.
170- *
170+ *
171171 * @see #getOrder()
172172 */
173173 default boolean isLittleEndian () {
@@ -176,7 +176,7 @@ default boolean isLittleEndian() {
176176
177177 /**
178178 * Sets the endianness of the stream.
179- *
179+ *
180180 * @param little If true, sets the order to {@link ByteOrder#LITTLE_ENDIAN};
181181 * otherwise, sets the order to {@link ByteOrder#BIG_ENDIAN}.
182182 * @see #setOrder(ByteOrder)
@@ -290,7 +290,7 @@ default String findString(final String... terminators) throws IOException {
290290 /**
291291 * Reads or skips a string ending with one of the given terminating
292292 * substrings.
293- *
293+ *
294294 * @param saveString Whether to collect the string from the current offset to
295295 * the terminating bytes, and return it. If false, returns null.
296296 * @param terminators The strings for which to search.
@@ -309,7 +309,7 @@ default String findString(final boolean saveString,
309309 /**
310310 * Reads a string ending with one of the given terminating substrings, using
311311 * the specified block size for buffering.
312- *
312+ *
313313 * @param blockSize The block size to use when reading bytes in chunks.
314314 * @param terminators The strings for which to search.
315315 * @return The string from the initial position through the end of the
@@ -325,9 +325,9 @@ default String findString(final int blockSize, final String... terminators)
325325 /**
326326 * Reads or skips a string ending with one of the given terminating
327327 * substrings, using the specified block size for buffering.
328- *
329- * @param saveString Whether to collect the string from the current offset
330- * to the terminating bytes, and return it. If false, returns null.
328+ *
329+ * @param saveString Whether to collect the string from the current offset to
330+ * the terminating bytes, and return it. If false, returns null.
331331 * @param blockSize The block size to use when reading bytes in chunks.
332332 * @param terminators The strings for which to search.
333333 * @throws IOException If saveString flag is set and the maximum search length
@@ -354,8 +354,8 @@ default String findString(final boolean saveString, final int blockSize,
354354 }
355355
356356 @ SuppressWarnings ("resource" )
357- final InputStreamReader in =
358- new InputStreamReader ( new DataHandleInputStream <>(this ), getEncoding ());
357+ final InputStreamReader in = new InputStreamReader (
358+ new DataHandleInputStream <>(this ), getEncoding ());
359359 final char [] buf = new char [blockSize ];
360360 long loc = 0 ;
361361 while (loc < maxLen && offset () < length () - 1 ) {
@@ -426,7 +426,7 @@ default void writeLine(final String string) throws IOException {
426426
427427 /**
428428 * Reads the next byte of data from the stream.
429- *
429+ *
430430 * @return the next byte of data, or -1 if the end of the stream is reached.
431431 * @throws IOException - if an I/O error occurs.
432432 */
@@ -436,7 +436,7 @@ default int read() throws IOException {
436436
437437 /**
438438 * Reads up to b.length bytes of data from the stream into an array of bytes.
439- *
439+ *
440440 * @return the total number of bytes read into the buffer.
441441 */
442442 default int read (byte [] b ) throws IOException {
@@ -445,7 +445,7 @@ default int read(byte[] b) throws IOException {
445445
446446 /**
447447 * Reads up to len bytes of data from the stream into an array of bytes.
448- *
448+ *
449449 * @return the total number of bytes read into the buffer.
450450 */
451451 int read (byte [] b , int off , int len ) throws IOException ;
@@ -457,7 +457,7 @@ default int read(byte[] b) throws IOException {
457457 * of a number of conditions; reaching end of file before {@code n} bytes have
458458 * been skipped is only one possibility. The actual number of bytes skipped is
459459 * returned. If {@code n} is negative, no bytes are skipped.
460- *
460+ *
461461 * @param n - the number of bytes to be skipped.
462462 * @return the actual number of bytes skipped.
463463 * @throws IOException - if an I/O error occurs.
@@ -591,7 +591,7 @@ default String readLine() throws IOException {
591591 if (read () != '\n' ) seek (cur );
592592 break ;
593593 default :
594- input .append ((char )c );
594+ input .append ((char ) c );
595595 break ;
596596 }
597597 }
@@ -674,7 +674,7 @@ default void writeBytes(final String s) throws IOException {
674674 @ Override
675675 default void writeChars (final String s ) throws IOException {
676676 final int len = s .length ();
677- for (int i = 0 ; i < len ; i ++) {
677+ for (int i = 0 ; i < len ; i ++) {
678678 final int v = s .charAt (i );
679679 write ((v >>> 8 ) & 0xFF );
680680 write ((v >>> 0 ) & 0xFF );
0 commit comments