FilterOutputStream.java (write(byte[])): Rewrite according to JDK 1.2 docs.
* java/io/FilterOutputStream.java (write(byte[])): Rewrite according to JDK 1.2 docs. (write(byte[],int,int)): ditto. From-SVN: r27537
This commit is contained in:
parent
3f1892e165
commit
cb81310a55
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
|
||||||
|
|
||||||
|
* java/io/FilterOutputStream.java (write(byte[])): Rewrite according
|
||||||
|
to JDK 1.2 docs.
|
||||||
|
(write(byte[],int,int)): ditto.
|
||||||
|
|
||||||
1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
|
1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
|
||||||
|
|
||||||
* posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
|
* posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
|
||||||
|
|
|
@ -46,14 +46,15 @@ public class FilterOutputStream extends OutputStream
|
||||||
public void write (byte[] b) throws IOException, NullPointerException
|
public void write (byte[] b) throws IOException, NullPointerException
|
||||||
{
|
{
|
||||||
// Don't do checking here, per Java Lang Spec.
|
// Don't do checking here, per Java Lang Spec.
|
||||||
out.write (b);
|
write (b, 0, b.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void write (byte[] b, int off, int len)
|
public void write (byte[] b, int off, int len)
|
||||||
throws IOException, NullPointerException, IndexOutOfBoundsException
|
throws IOException, NullPointerException, IndexOutOfBoundsException
|
||||||
{
|
{
|
||||||
// Don't do checking here, per Java Lang Spec.
|
// Don't do checking here, per Java Lang Spec.
|
||||||
out.write(b, off, len);
|
for (int i=0; i < len; i++)
|
||||||
|
write (b[off + i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// The output stream.
|
// The output stream.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue