aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoLFInputStream.java
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoLFInputStream.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoLFInputStream.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoLFInputStream.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoLFInputStream.java
index 6e33f99127..06f83f3ed9 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoLFInputStream.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoLFInputStream.java
@@ -125,12 +125,14 @@ public class AutoLFInputStream extends InputStream {
this.abortIfBinary = abortIfBinary;
}
+ /** {@inheritDoc} */
@Override
public int read() throws IOException {
final int read = read(single, 0, 1);
return read == 1 ? single[0] & 0xff : -1;
}
+ /** {@inheritDoc} */
@Override
public int read(byte[] bs, final int off, final int len)
throws IOException {
@@ -171,13 +173,16 @@ public class AutoLFInputStream extends InputStream {
}
/**
- * @return true if the stream has detected as a binary so far
+ * Whether the stream has detected as a binary so far.
+ *
+ * @return true if the stream has detected as a binary so far.
* @since 3.3
*/
public boolean isBinary() {
return isBinary;
}
+ /** {@inheritDoc} */
@Override
public void close() throws IOException {
in.close();