PipedInputStream.java, [...]: Yet another new version from Classpath.

* java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
	Yet another new version from Classpath.

From-SVN: r33328
This commit is contained in:
Tom Tromey
2000-04-21 21:41:32 +00:00
committed by Tom Tromey
parent 7f13af23a5
commit 6cd167e1a7
3 changed files with 16 additions and 27 deletions
+3 -6
View File
@@ -1,5 +1,5 @@
/* PipedOutputStream.java -- Write portion of piped streams.
Copyright (C) 1998 Free Software Foundation, Inc.
Copyright (C) 1998, 2000 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -164,10 +164,7 @@ close() throws IOException
public synchronized void
write(int b) throws IOException
{
byte[] buf = new byte[1];
buf[0] = (byte)(b & 0xFF);
snk.write(buf, 0, buf.length);
snk.receive (b);
}
/*************************************************************************/
@@ -188,7 +185,7 @@ write(int b) throws IOException
public void
write(byte[] buf, int offset, int len) throws IOException
{
snk.write(buf, 0, len);
snk.receive (buf, 0, len);
}
/*************************************************************************/