< prev index next >
src/java.desktop/share/classes/javax/swing/ProgressMonitorInputStream.java
Print this page
@@ -102,11 +102,11 @@
return monitor;
}
/**
- * Overrides <code>FilterInputStream.read</code>
+ * Overrides {@code FilterInputStream.read}
* to update the progress monitor after the read.
*/
public int read() throws IOException {
int c = in.read();
if (c >= 0) monitor.setProgress(++nread);
@@ -119,11 +119,11 @@
return c;
}
/**
- * Overrides <code>FilterInputStream.read</code>
+ * Overrides {@code FilterInputStream.read}
* to update the progress monitor after the read.
*/
public int read(byte b[]) throws IOException {
int nr = in.read(b);
if (nr > 0) monitor.setProgress(nread += nr);
@@ -136,11 +136,11 @@
return nr;
}
/**
- * Overrides <code>FilterInputStream.read</code>
+ * Overrides {@code FilterInputStream.read}
* to update the progress monitor after the read.
*/
public int read(byte b[],
int off,
int len) throws IOException {
@@ -155,32 +155,32 @@
return nr;
}
/**
- * Overrides <code>FilterInputStream.skip</code>
+ * Overrides {@code FilterInputStream.skip}
* to update the progress monitor after the skip.
*/
public long skip(long n) throws IOException {
long nr = in.skip(n);
if (nr > 0) monitor.setProgress(nread += nr);
return nr;
}
/**
- * Overrides <code>FilterInputStream.close</code>
+ * Overrides {@code FilterInputStream.close}
* to close the progress monitor as well as the stream.
*/
public void close() throws IOException {
in.close();
monitor.close();
}
/**
- * Overrides <code>FilterInputStream.reset</code>
+ * Overrides {@code FilterInputStream.reset}
* to reset the progress monitor as well as the stream.
*/
public synchronized void reset() throws IOException {
in.reset();
nread = size - in.available();
< prev index next >