projects
/
jSite2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
whitespace fixups
[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
..
68e5d16
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;
@@
-10,9
+11,8
@@
import java.io.InputStream;
/**
* A wrapper around an {@link InputStream} that only supplies a limit number of
* bytes from the underlying input stream.
/**
* A wrapper around an {@link InputStream} that only supplies a limit number of
* bytes from the underlying input stream.
- *
+ *
* @author <a href="mailto:dr@ina-germany.de">David Roden</a>
* @author <a href="mailto:dr@ina-germany.de">David Roden</a>
- * @version $Id$
*/
public class LimitedInputStream extends FilterInputStream {
*/
public class LimitedInputStream extends FilterInputStream {
@@
-22,7
+22,7
@@
public class LimitedInputStream extends FilterInputStream {
/**
* Creates a new LimitedInputStream that supplies at most
* <code>length</code> bytes from the given input stream.
/**
* Creates a new LimitedInputStream that supplies at most
* <code>length</code> bytes from the given input stream.
- *
+ *
* @param inputStream
* The input stream
* @param length
* @param inputStream
* The input stream
* @param length
@@
-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,11
+85,9
@@
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)
*/
@Override
* @see java.io.FilterInputStream#mark(int)
*/
@Override
@@
-99,7
+97,7
@@
public class LimitedInputStream extends FilterInputStream {
/**
* {@inheritDoc}
/**
* {@inheritDoc}
- *
+ *
* @see java.io.FilterInputStream#markSupported()
* @return <code>false</code>
*/
* @see java.io.FilterInputStream#markSupported()
* @return <code>false</code>
*/
@@
-109,11
+107,9
@@
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()
*/
@Override
* @see java.io.FilterInputStream#reset()
*/
@Override
@@
-124,7
+120,7
@@
public class LimitedInputStream extends FilterInputStream {
/**
* Consumes the input stream, i.e. read all bytes until the limit is
* reached.
/**
* Consumes the input stream, i.e. read all bytes until the limit is
* reached.
- *
+ *
* @throws IOException
* if an I/O error occurs
*/
* @throws IOException
* if an I/O error occurs
*/