BufferedWriter.java, [...]: Fixed javadocs all over, rename arguments to match javadocs, fixed coding style.
2004-04-20 Michael Koch <konqueror@gmx.de> * java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java, java/io/CharArrayWriter.java, java/io/DataInput.java, java/io/DataInputStream.java, java/io/File.java, java/io/FilterInputStream.java, java/io/InputStream.java, java/io/InputStreamReader.java, java/io/ObjectInputStream.java, java/io/ObjectStreamClass.java, java/io/PipedInputStream.java, java/io/PipedReader.java, java/io/PushbackInputStream.java, java/io/PushbackReader.java, java/io/RandomAccessFile.java, java/io/SerializablePermission.java, java/io/StreamTokenizer.java, java/io/StringWriter.java, java/io/WriteAbortedException.java, java/io/Writer.java: Fixed javadocs all over, rename arguments to match javadocs, fixed coding style. From-SVN: r80897
This commit is contained in:
parent
7aebacee26
commit
9f714d5eec
22 changed files with 193 additions and 169 deletions
|
@ -277,16 +277,16 @@ public class DataInputStream extends FilterInputStream implements DataInput
|
|||
* buffer
|
||||
* @exception IOException If any other error occurs
|
||||
*/
|
||||
public final void readFully (byte[] b, int off, int len) throws IOException
|
||||
public final void readFully (byte[] buf, int offset, int len) throws IOException
|
||||
{
|
||||
while (len > 0)
|
||||
{
|
||||
// in.read will block until some data is available.
|
||||
int numread = in.read (b, off, len);
|
||||
int numread = in.read (buf, offset, len);
|
||||
if (numread < 0)
|
||||
throw new EOFException ();
|
||||
len -= numread;
|
||||
off += numread;
|
||||
offset += numread;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue