2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __gnu_java_nio_VMChannel__
5 #define __gnu_java_nio_VMChannel__
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
20 class PlainSocketImpl;
24 class PipeImpl$SinkChannelImpl;
25 class PipeImpl$SourceChannelImpl;
29 class FileChannelImpl;
43 class gnu::java::nio::VMChannel : public ::java::lang::Object
48 static ::gnu::java::nio::VMChannel * getVMChannel(::gnu::java::net::PlainSocketImpl *);
49 static ::gnu::java::nio::VMChannel * getVMChannel(::gnu::java::nio::PipeImpl$SourceChannelImpl *);
50 static ::gnu::java::nio::VMChannel * getVMChannel(::gnu::java::nio::PipeImpl$SinkChannelImpl *);
51 static ::gnu::java::nio::VMChannel * getVMChannel(::gnu::java::nio::channels::FileChannelImpl *);
52 virtual void setBlocking(jint, jboolean);
53 virtual void setBlocking(jboolean);
54 public: // actually package-private
55 virtual jint read(jint, ::java::nio::ByteBuffer *);
57 virtual jint read(::java::nio::ByteBuffer *);
58 public: // actually package-private
59 virtual jlong readScattering(jint, JArray< ::java::nio::ByteBuffer * > *, jint, jint);
61 virtual jlong readScattering(JArray< ::java::nio::ByteBuffer * > *, jint, jint);
62 public: // actually package-private
63 virtual jint write(jint, ::java::nio::ByteBuffer *);
65 virtual jint write(::java::nio::ByteBuffer *);
66 public: // actually package-private
67 virtual jlong writeGathering(jint, JArray< ::java::nio::ByteBuffer * > *, jint, jint);
69 virtual jlong writeGathering(JArray< ::java::nio::ByteBuffer * > *, jint, jint);
71 static void initIDs();
72 jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) fd;
74 static ::java::lang::Class class$;
77 #endif // __gnu_java_nio_VMChannel__