projects
/
jSite2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove Id keyword
[jSite2.git]
/
src
/
net
/
pterodactylus
/
util
/
io
/
LimitedInputStream.java
diff --git
a/src/net/pterodactylus/util/io/LimitedInputStream.java
b/src/net/pterodactylus/util/io/LimitedInputStream.java
index
284d53d
..
5224bde
100644
(file)
--- a/
src/net/pterodactylus/util/io/LimitedInputStream.java
+++ b/
src/net/pterodactylus/util/io/LimitedInputStream.java
@@
-1,6
+1,7
@@
/**
* © 2008 INA Service GmbH
*/
/**
* © 2008 INA Service GmbH
*/
+
package net.pterodactylus.util.io;
import java.io.FilterInputStream;
package net.pterodactylus.util.io;
import java.io.FilterInputStream;
@@
-12,7
+13,6
@@
import java.io.InputStream;
* bytes from the underlying input stream.
*
* @author <a href="mailto:dr@ina-germany.de">David Roden</a>
* bytes from the underlying input stream.
*
* @author <a href="mailto:dr@ina-germany.de">David Roden</a>
- * @version $Id$
*/
public class LimitedInputStream extends FilterInputStream {
*/
public class LimitedInputStream extends FilterInputStream {
@@
-76,7
+76,7
@@
public class LimitedInputStream extends FilterInputStream {
*/
@Override
public synchronized long skip(long n) throws IOException {
*/
@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));
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)
*/
*
* @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()
*/
*
* @see java.io.FilterInputStream#reset()
*/