Skip to content

Commit 0c7c76f

Browse files
committed
Javadoc
Whitespace
1 parent 86d1045 commit 0c7c76f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/main/java/org/apache/commons/codec/binary/BaseNCodecInputStream.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public int available() throws IOException {
7070
// as long as we have not reached EOF, indicate that there is more
7171
// data available. As we do not know for sure how much data is left,
7272
// just return 1 as a safe guess.
73-
7473
return context.eof ? 0 : 1;
7574
}
7675

@@ -209,6 +208,7 @@ public int read(final byte[] array, final int offset, final int len) throws IOEx
209208
* Repositions this stream to the position at the time the mark method was last called on this input stream.
210209
* <p>
211210
* The {@link #reset} method of {@link BaseNCodecInputStream} does nothing except throw an {@link IOException}.
211+
* </p>
212212
*
213213
* @throws IOException if this method is invoked
214214
* @since 1.7
@@ -229,11 +229,9 @@ public long skip(final long n) throws IOException {
229229
if (n < 0) {
230230
throw new IllegalArgumentException("Negative skip length: " + n);
231231
}
232-
233232
// skip in chunks of 512 bytes
234233
final byte[] b = new byte[512];
235234
long todo = n;
236-
237235
while (todo > 0) {
238236
int len = (int) Math.min(b.length, todo);
239237
len = this.read(b, 0, len);
@@ -242,7 +240,6 @@ public long skip(final long n) throws IOException {
242240
}
243241
todo -= len;
244242
}
245-
246243
return n - todo;
247244
}
248245
}

0 commit comments

Comments
 (0)