X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Futil%2Fio%2FLimitedInputStream.java;h=5224bde9c3828cc78a4a2facce455f98358af509;hb=cf127faffabd3f07b0acc6de9ea746059d571b56;hp=284d53dd25233bd8a9ea1dbbb2ec5fcc0065f2a5;hpb=09c626c3de52d507f682383002f20402ab41e1a6;p=jSite2.git diff --git a/src/net/pterodactylus/util/io/LimitedInputStream.java b/src/net/pterodactylus/util/io/LimitedInputStream.java index 284d53d..5224bde 100644 --- a/src/net/pterodactylus/util/io/LimitedInputStream.java +++ b/src/net/pterodactylus/util/io/LimitedInputStream.java @@ -1,6 +1,7 @@ /** * © 2008 INA Service GmbH */ + package net.pterodactylus.util.io; import java.io.FilterInputStream; @@ -12,7 +13,6 @@ import java.io.InputStream; * bytes from the underlying input stream. * * @author David Roden - * @version $Id$ */ public class LimitedInputStream extends FilterInputStream { @@ -76,7 +76,7 @@ public class LimitedInputStream extends FilterInputStream { */ @Override public synchronized long skip(long n) throws IOException { - if ((n < 0) || (remaining == 0)) { + if ((n < 0) || (remaining == 0)) { return 0; } long skipped = super.skip(Math.min(n, remaining)); @@ -85,10 +85,8 @@ public class LimitedInputStream extends FilterInputStream { } /** - * {@inheritDoc} - * - * This method does nothing, as {@link #mark(int)} and {@link #reset()} are - * not supported. + * {@inheritDoc} This method does nothing, as {@link #mark(int)} and + * {@link #reset()} are not supported. * * @see java.io.FilterInputStream#mark(int) */ @@ -109,10 +107,8 @@ public class LimitedInputStream extends FilterInputStream { } /** - * {@inheritDoc} - * - * This method does nothing, as {@link #mark(int)} and {@link #reset()} are - * not supported. + * {@inheritDoc} This method does nothing, as {@link #mark(int)} and + * {@link #reset()} are not supported. * * @see java.io.FilterInputStream#reset() */