aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/io/DataOutputStream.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/io/DataOutputStream.java')
-rw-r--r--libjava/java/io/DataOutputStream.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/java/io/DataOutputStream.java b/libjava/java/io/DataOutputStream.java
index 8fe9bbe..644b590 100644
--- a/libjava/java/io/DataOutputStream.java
+++ b/libjava/java/io/DataOutputStream.java
@@ -122,10 +122,10 @@ public class DataOutputStream extends FilterOutputStream implements DataOutput
*
* @exception IOException If an error occurs.
*/
- public synchronized void write (byte[] b, int off, int len)
- throws IOException, NullPointerException, IndexOutOfBoundsException
+ public synchronized void write (byte[] buf, int offset, int len)
+ throws IOException
{
- out.write(b, off, len);
+ out.write(buf, offset, len);
written += len;
}