diff options
| author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-16 11:30:14 +0000 |
|---|---|---|
| committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-16 11:30:14 +0000 |
| commit | 10f4032008f82fde2d84305935fbe3afc66b327f (patch) | |
| tree | 35bc1efd9744250f460b2be74623c87b86db3c0d /libjava/java/io/PipedReader.java | |
| parent | 6929f2712595ab1aaf8737ff8ec6bd57301cd52a (diff) | |
| download | gcc-10f4032008f82fde2d84305935fbe3afc66b327f.tar.gz | |
2004-11-16 Michael Koch <konqueror@gmx.de>
* java/io/BufferedReader.java,
java/io/FileInputStream.java,
java/io/FileOutputStream.java,
java/io/FileWriter.java,
java/io/OutputStreamWriter.java,
java/io/PipedInputStream.java,
java/io/PipedOutputStream.java,
java/io/PipedReader.java,
java/io/PipedWriter.java,
java/io/PrintStream.java,
java/io/PushbackInputStream.java,
java/io/RandomAccessFile.java,
java/io/Reader.java,
java/io/StreamTokenizer.java,
java/io/StringReader.java,
java/net/NetworkInterface.java,
java/net/URLClassLoader.java,
java/nio/ByteOrder.java,
java/nio/channels/Channel.java:
Fixed javadocs all over.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90727 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/io/PipedReader.java')
| -rw-r--r-- | libjava/java/io/PipedReader.java | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/libjava/java/io/PipedReader.java b/libjava/java/io/PipedReader.java index 3991ba94e45..c91fc211c7e 100644 --- a/libjava/java/io/PipedReader.java +++ b/libjava/java/io/PipedReader.java @@ -123,7 +123,7 @@ public class PipedReader extends Reader * This stream is then ready for reading. If this stream is already * connected or has been previously closed, then an exception is thrown * - * @param src The <code>PipedWriter</code> to connect this stream to + * @param source The <code>PipedWriter</code> to connect this stream to * * @exception IOException If this PipedReader or <code>source</code> * has been connected already. @@ -218,11 +218,7 @@ public class PipedReader extends Reader * because the end of the stream was reached. If the stream is already * closed, a -1 will again be returned to indicate the end of the stream. * <p> - * This method will block if no chars are available to be read. - * - * @param buf The buffer into which chars will be stored - * @param offset The index into the buffer at which to start writing. - * @param len The maximum number of chars to read. + * This method will block if no char is available to be read. */ public int read() throws IOException { @@ -233,11 +229,7 @@ public class PipedReader extends Reader // if this method is never called. int r = read(read_buf, 0, 1); - - if (r == -1) - return -1; - else - return read_buf[0]; + return r != -1 ? read_buf[0] : -1; } /** |
