ChannelOutputStream.java: New file.

2003-12-19  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/ChannelOutputStream.java: New file.
	* java/nio/channels/Channels.java
	(newOutputStream): Implemented.
	* Makefile.am (ordinary_java_source_files)
	Added gnu/java/nio/ChannelOutputStream.java.
	* Makefile.in: Regenerated.

From-SVN: r74847
This commit is contained in:
Michael Koch 2003-12-19 20:42:00 +00:00 committed by Michael Koch
parent 60cd3e8bab
commit 01da266767
5 changed files with 82 additions and 2 deletions

View file

@ -38,6 +38,7 @@ exception statement from your version. */
package java.nio.channels;
import gnu.java.nio.ChannelInputStream;
import gnu.java.nio.ChannelOutputStream;
import gnu.java.nio.InputStreamChannel;
import gnu.java.nio.OutputStreamChannel;
import java.io.InputStream;
@ -64,9 +65,9 @@ public final class Channels
/**
* Constructs a stream that writes bytes to the given channel.
*/
public static OutputStream newOutputStream (WritableByteChannel ch)
public static OutputStream newOutputStream(WritableByteChannel ch)
{
throw new Error ("not implemented");
return new ChannelOutputStream(ch);
}
/**