< prev index next >
src/java.desktop/share/classes/javax/swing/ProgressMonitorInputStream.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -122,11 +122,11 @@
/**
* Overrides <code>FilterInputStream.read</code>
* to update the progress monitor after the read.
*/
- public int read(byte b[]) throws IOException {
+ public int read(byte[] b) throws IOException {
int nr = in.read(b);
if (nr > 0) monitor.setProgress(nread += nr);
if (monitor.isCanceled()) {
InterruptedIOException exc =
new InterruptedIOException("progress");
@@ -139,11 +139,11 @@
/**
* Overrides <code>FilterInputStream.read</code>
* to update the progress monitor after the read.
*/
- public int read(byte b[],
+ public int read(byte[] b,
int off,
int len) throws IOException {
int nr = in.read(b, off, len);
if (nr > 0) monitor.setProgress(nread += nr);
if (monitor.isCanceled()) {
< prev index next >