@@ -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 */
@@ -161,14 +161,14 @@ default boolean ensureWritable(final long count) throws IOException {
161161
162162 /**
163163 * Sets the byte order of the stream.
164- *
164+ *
165165 * @param order Order to set.
166166 */
167167 void setOrder (ByteOrder order );
168168
169169 /**
170170 * Returns true iff the stream's order is {@link ByteOrder#BIG_ENDIAN}.
171- *
171+ *
172172 * @see #getOrder()
173173 */
174174 default boolean isBigEndian () {
@@ -177,7 +177,7 @@ default boolean isBigEndian() {
177177
178178 /**
179179 * Returns true iff the stream's order is {@link ByteOrder#LITTLE_ENDIAN}.
180- *
180+ *
181181 * @see #getOrder()
182182 */
183183 default boolean isLittleEndian () {
@@ -186,7 +186,7 @@ default boolean isLittleEndian() {
186186
187187 /**
188188 * Sets the endianness of the stream.
189- *
189+ *
190190 * @param little If true, sets the order to {@link ByteOrder#LITTLE_ENDIAN};
191191 * otherwise, sets the order to {@link ByteOrder#BIG_ENDIAN}.
192192 * @see #setOrder(ByteOrder)
@@ -300,7 +300,7 @@ default String findString(final String... terminators) throws IOException {
300300 /**
301301 * Reads or skips a string ending with one of the given terminating
302302 * substrings.
303- *
303+ *
304304 * @param saveString Whether to collect the string from the current offset to
305305 * the terminating bytes, and return it. If false, returns null.
306306 * @param terminators The strings for which to search.
@@ -319,7 +319,7 @@ default String findString(final boolean saveString,
319319 /**
320320 * Reads a string ending with one of the given terminating substrings, using
321321 * the specified block size for buffering.
322- *
322+ *
323323 * @param blockSize The block size to use when reading bytes in chunks.
324324 * @param terminators The strings for which to search.
325325 * @return The string from the initial position through the end of the
@@ -335,9 +335,9 @@ default String findString(final int blockSize, final String... terminators)
335335 /**
336336 * Reads or skips a string ending with one of the given terminating
337337 * substrings, using the specified block size for buffering.
338- *
339- * @param saveString Whether to collect the string from the current offset
340- * to the terminating bytes, and return it. If false, returns null.
338+ *
339+ * @param saveString Whether to collect the string from the current offset to
340+ * the terminating bytes, and return it. If false, returns null.
341341 * @param blockSize The block size to use when reading bytes in chunks.
342342 * @param terminators The strings for which to search.
343343 * @throws IOException If saveString flag is set and the maximum search length
@@ -364,8 +364,8 @@ default String findString(final boolean saveString, final int blockSize,
364364 }
365365
366366 @ SuppressWarnings ("resource" )
367- final InputStreamReader in =
368- new InputStreamReader ( new DataHandleInputStream <>(this ), getEncoding ());
367+ final InputStreamReader in = new InputStreamReader (
368+ new DataHandleInputStream <>(this ), getEncoding ());
369369 final char [] buf = new char [blockSize ];
370370 long loc = 0 ;
371371 while (loc < maxLen && offset () < length () - 1 ) {
@@ -436,7 +436,7 @@ default void writeLine(final String string) throws IOException {
436436
437437 /**
438438 * Reads the next byte of data from the stream.
439- *
439+ *
440440 * @return the next byte of data, or -1 if the end of the stream is reached.
441441 * @throws IOException - if an I/O error occurs.
442442 */
@@ -446,7 +446,7 @@ default int read() throws IOException {
446446
447447 /**
448448 * Reads up to b.length bytes of data from the stream into an array of bytes.
449- *
449+ *
450450 * @return the total number of bytes read into the buffer.
451451 */
452452 default int read (byte [] b ) throws IOException {
@@ -455,7 +455,7 @@ default int read(byte[] b) throws IOException {
455455
456456 /**
457457 * Reads up to len bytes of data from the stream into an array of bytes.
458- *
458+ *
459459 * @return the total number of bytes read into the buffer.
460460 */
461461 int read (byte [] b , int off , int len ) throws IOException ;
@@ -467,7 +467,7 @@ default int read(byte[] b) throws IOException {
467467 * of a number of conditions; reaching end of file before {@code n} bytes have
468468 * been skipped is only one possibility. The actual number of bytes skipped is
469469 * returned. If {@code n} is negative, no bytes are skipped.
470- *
470+ *
471471 * @param n - the number of bytes to be skipped.
472472 * @return the actual number of bytes skipped.
473473 * @throws IOException - if an I/O error occurs.
@@ -600,7 +600,7 @@ default String readLine() throws IOException {
600600 if (read () != '\n' ) seek (cur );
601601 break ;
602602 default :
603- input .append ((char )c );
603+ input .append ((char ) c );
604604 break ;
605605 }
606606 }
@@ -683,7 +683,7 @@ default void writeBytes(final String s) throws IOException {
683683 @ Override
684684 default void writeChars (final String s ) throws IOException {
685685 final int len = s .length ();
686- for (int i = 0 ; i < len ; i ++) {
686+ for (int i = 0 ; i < len ; i ++) {
687687 final int v = s .charAt (i );
688688 write ((v >>> 8 ) & 0xFF );
689689 write ((v >>> 0 ) & 0xFF );
0 commit comments