summaryrefslogtreecommitdiff
path: root/javax/swing/ProgressMonitorInputStream.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/swing/ProgressMonitorInputStream.java')
-rw-r--r--javax/swing/ProgressMonitorInputStream.java46
1 files changed, 23 insertions, 23 deletions
diff --git a/javax/swing/ProgressMonitorInputStream.java b/javax/swing/ProgressMonitorInputStream.java
index 90e721247..ba98bf68e 100644
--- a/javax/swing/ProgressMonitorInputStream.java
+++ b/javax/swing/ProgressMonitorInputStream.java
@@ -47,8 +47,8 @@ import java.io.IOException;
/**
* An input stream with a {@link ProgressMonitor}.
- *
- * @author Andrew Selkirk
+ *
+ * @author Andrew Selkirk
* @author Robert Schuster (robertschuster@fsfe.org)
* @status updated to 1.2
* @since 1.2
@@ -68,7 +68,7 @@ public class ProgressMonitorInputStream extends FilterInputStream
/**
* Creates a new <code>ProgressMonitorInputStream</code>.
- *
+ *
* @param component the parent component for the progress monitor dialog.
* @param message the task description.
* @param stream the underlying input stream.
@@ -79,7 +79,7 @@ public class ProgressMonitorInputStream extends FilterInputStream
super(stream);
int max = 0;
-
+
try
{
max = stream.available();
@@ -94,7 +94,7 @@ public class ProgressMonitorInputStream extends FilterInputStream
/**
* Resets the input stream to the point where {@link #mark(int)} was called.
- *
+ *
* @exception IOException TODO
*/
public void reset() throws IOException
@@ -108,12 +108,12 @@ public class ProgressMonitorInputStream extends FilterInputStream
}
/**
- * Reads an unsigned byte from the input stream and returns it as an
- * <code>int</code> in the range of 0-255. Returns -1 if the end of the
+ * Reads an unsigned byte from the input stream and returns it as an
+ * <code>int</code> in the range of 0-255. Returns -1 if the end of the
* stream has been reached. The progress monitor is updated.
- *
+ *
* @return int
- *
+ *
* @exception IOException if there is a problem reading the stream.
*/
public int read() throws IOException
@@ -129,14 +129,14 @@ public class ProgressMonitorInputStream extends FilterInputStream
/**
* Reads bytes from the input stream and stores them in the supplied array,
- * and updates the progress monitor (or closes it if the end of the stream
+ * and updates the progress monitor (or closes it if the end of the stream
* is reached).
- *
+ *
* @param data the data array for returning bytes read from the stream.
- *
+ *
* @return The number of bytes read, or -1 if there are no more bytes in the
* stream.
- *
+ *
* @throws IOException if there is a problem reading bytes from the stream.
*/
public int read(byte[] data) throws IOException
@@ -159,17 +159,17 @@ public class ProgressMonitorInputStream extends FilterInputStream
}
/**
- * Reads up to <code>length</code> bytes from the input stream and stores
- * them in the supplied array at the given index, and updates the progress
+ * Reads up to <code>length</code> bytes from the input stream and stores
+ * them in the supplied array at the given index, and updates the progress
* monitor (or closes it if the end of the stream is reached).
*
* @param data the data array for returning bytes read from the stream.
- * @param offset the offset into the array where the bytes should be written.
+ * @param offset the offset into the array where the bytes should be written.
* @param length the maximum number of bytes to read from the stream.
- *
+ *
* @return The number of bytes read, or -1 if there are no more bytes in the
* stream.
- *
+ *
* @throws IOException if there is a problem reading bytes from the stream.
*/
public int read(byte[] data, int offset, int length) throws IOException
@@ -192,13 +192,13 @@ public class ProgressMonitorInputStream extends FilterInputStream
}
/**
- * Skips the specified number of bytes and updates the
+ * Skips the specified number of bytes and updates the
* {@link ProgressMonitor}.
- *
+ *
* @param length the number of bytes to skip.
*
* @return The actual number of bytes skipped.
- *
+ *
* @throws IOException if there is a problem skipping bytes in the stream.
*/
public long skip(long length) throws IOException
@@ -219,7 +219,7 @@ public class ProgressMonitorInputStream extends FilterInputStream
/**
* Closes the input stream and the associated {@link ProgressMonitor}.
- *
+ *
* @throws IOException if there is a problem closing the input stream.
*/
public void close() throws IOException
@@ -230,7 +230,7 @@ public class ProgressMonitorInputStream extends FilterInputStream
/**
* Returns the {@link ProgressMonitor} used by this input stream.
- *
+ *
* @return The progress monitor.
*/
public ProgressMonitor getProgressMonitor()