Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/streams/CRLFtoLFInputStream.java')
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/streams/CRLFtoLFInputStream.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/streams/CRLFtoLFInputStream.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/streams/CRLFtoLFInputStream.java
index 78a41ce4a..2621578fd 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/streams/CRLFtoLFInputStream.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/streams/CRLFtoLFInputStream.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * Copyright (c) 2000, 2017 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -41,6 +41,7 @@ public class CRLFtoLFInputStream extends FilterInputStream {
* bytes specified have been skipped, bytesTransferred will be zero
* @throws IOException if an i/o error occurs
*/
+ @Override
public int read() throws IOException {
if (! pendingByte) {
lastByte = in.read(); // ok if this throws
@@ -64,6 +65,7 @@ public class CRLFtoLFInputStream extends FilterInputStream {
* bytes specified have been skipped, bytesTransferred may be non-zero
* @throws IOException if an i/o error occurs
*/
+ @Override
public int read(byte[] buffer, int off, int len) throws IOException {
// handle boundary cases cleanly
if (len == 0) {
@@ -125,6 +127,7 @@ public class CRLFtoLFInputStream extends FilterInputStream {
* bytes specified have been skipped, bytesTransferred may be non-zero
* @throws IOException if an i/o error occurs
*/
+ @Override
public long skip(long count) throws IOException {
int actualCount = 0; // assumes count < Integer.MAX_INT
try {
@@ -142,6 +145,7 @@ public class CRLFtoLFInputStream extends FilterInputStream {
* possible translation of CR/LF sequences to LFs in these bytes.
* @throws IOException if an i/o error occurs
*/
+ @Override
public int available() throws IOException {
return in.available() / 2; // we can guarantee at least this amount after contraction
}
@@ -149,6 +153,7 @@ public class CRLFtoLFInputStream extends FilterInputStream {
/**
* Mark is not supported by the wrapper even if the underlying stream does, returns false.
*/
+ @Override
public boolean markSupported() {
return false;
}

Back to the top