Index: include/java_nio_channels_Channels.h =================================================================== RCS file: include/java_nio_channels_Channels.h diff -N include/java_nio_channels_Channels.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ include/java_nio_channels_Channels.h 30 Apr 2004 08:28:13 -0000 @@ -0,0 +1,20 @@ +/* DO NOT EDIT THIS FILE - it is machine generated */ + +#ifndef __java_nio_channels_Channels__ +#define __java_nio_channels_Channels__ + +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +extern JNIEXPORT jobject JNICALL Java_java_nio_channels_Channels_newInputStream (JNIEnv *env, jclass, jobject); +extern JNIEXPORT jobject JNICALL Java_java_nio_channels_Channels_newOutputStream (JNIEnv *env, jclass, jobject); + +#ifdef __cplusplus +} +#endif + +#endif /* __java_nio_channels_Channels__ */ Index: include/Makefile.am =================================================================== RCS file: /cvsroot/classpath/classpath/include/Makefile.am,v retrieving revision 1.18 diff -u -r1.18 Makefile.am --- include/Makefile.am 29 Apr 2004 14:37:06 -0000 1.18 +++ include/Makefile.am 30 Apr 2004 08:28:13 -0000 @@ -57,6 +57,7 @@ $(top_srcdir)/include/java_net_NetworkInterface.h \ $(top_srcdir)/include/java_nio_DirectByteBufferImpl.h \ $(top_srcdir)/include/java_nio_MappedByteBufferImpl.h \ +$(top_srcdir)/include/java_nio_channels_Channels.h \ $(top_srcdir)/include/java_util_TimeZone.h if CREATE_JNI_HEADERS @@ -169,6 +170,8 @@ $(JAVAH) -o $@ java.nio.DirectByteBufferImpl $(top_srcdir)/include/java_nio_MappedByteBufferImpl.h: $(top_srcdir)/java/nio/MappedByteBufferImpl.java $(JAVAH) -o $@ java.nio.MappedByteBufferImpl +$(top_srcdir)/include/java_nio_channels_Channels.h: $(top_srcdir)/java/nio/channels/Channels.java + $(JAVAH) -o $@ java.nio.channels.Channels $(top_srcdir)/include/gnu_java_nio_channels_FileChannelImpl.h: $(top_srcdir)/gnu/java/nio/channels/FileChannelImpl.java $(JAVAH) -o $@ gnu.java.nio.channels.FileChannelImpl $(top_srcdir)/include/java_util_TimeZone.h: $(top_srcdir)/java/util/TimeZone.java Index: native/jni/java-nio/java_nio_channels_Channels.c =================================================================== RCS file: native/jni/java-nio/java_nio_channels_Channels.c diff -N native/jni/java-nio/java_nio_channels_Channels.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ native/jni/java-nio/java_nio_channels_Channels.c 30 Apr 2004 08:28:13 -0000 @@ -0,0 +1,61 @@ +/* java_nio_channels_Channels.c - Native methods for Channel + Copyright (C) 2004 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +#include +#include + +#include +#include + +#include "java_nio_channels_Channels.h" + +#define IO_EXCEPTION "java/io/IOException" + +JNIEXPORT jobject JNICALL +Java_java_nio_channels_Channels_newInputStream (JNIEnv *env, jclass cls, jobject filechannel) +{ + JCL_ThrowException (env, IO_EXCEPTION, "java.nio.channels.Channels.newInputStream(): not implemented"); + return NULL; +} + +JNIEXPORT jobject JNICALL +Java_java_nio_channels_Channels_newOutputStream (JNIEnv *env, jclass cls, jobject filechannel) +{ + JCL_ThrowException (env, IO_EXCEPTION, "java.nio.channels.Channels.newOutputStream(): not implemented"); + return NULL; +} + Index: native/jni/java-nio/Makefile.am =================================================================== RCS file: /cvsroot/classpath/classpath/native/jni/java-nio/Makefile.am,v retrieving revision 1.7 diff -u -r1.7 Makefile.am --- native/jni/java-nio/Makefile.am 29 Apr 2004 14:37:06 -0000 1.7 +++ native/jni/java-nio/Makefile.am 30 Apr 2004 08:28:13 -0000 @@ -5,7 +5,8 @@ gnu_java_nio_SelectorImpl.c \ gnu_java_nio_channels_FileChannelImpl.c \ java_nio_DirectByteBufferImpl.c \ - java_nio_MappedByteBufferImpl.c + java_nio_MappedByteBufferImpl.c \ + java_nio_channels_Channels.c libjavanio_la_LDFLAGS = @CLASSPATH_MODULE@ libjavanio_la_LIBADD = $(top_builddir)/native/jni/classpath/jcl.lo