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/ProgressMonitorInputStream.java')
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/streams/ProgressMonitorInputStream.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/streams/ProgressMonitorInputStream.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/streams/ProgressMonitorInputStream.java
index b15cf7926..d4a85fc0d 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/streams/ProgressMonitorInputStream.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/streams/ProgressMonitorInputStream.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
@@ -55,6 +55,7 @@ public abstract class ProgressMonitorInputStream extends FilterInputStream {
* Updates the progress monitor to the final number of bytes read.
* @throws IOException if an i/o error occurs
*/
+ @Override
public void close() throws IOException {
try {
in.close();
@@ -70,6 +71,7 @@ public abstract class ProgressMonitorInputStream 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 {
int b = in.read();
if (b != -1) {
@@ -86,6 +88,7 @@ public abstract class ProgressMonitorInputStream 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 offset, int length) throws IOException {
try {
int count = in.read(buffer, offset, length);
@@ -108,6 +111,7 @@ public abstract class ProgressMonitorInputStream 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 amount) throws IOException {
try {
long count = in.skip(amount);
@@ -124,6 +128,7 @@ public abstract class ProgressMonitorInputStream 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