summaryrefslogtreecommitdiffstats
path: root/libjava/java/nio/channels
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-09 19:58:05 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-09 19:58:05 +0000
commit65bf3316cf384588453604be6b4f0ed3751a8b0f (patch)
tree996a5f57d4a68c53473382e45cb22f574cb3e4db /libjava/java/nio/channels
parent8fc56618a84446beccd45b80381cdfe0e94050df (diff)
downloadppe42-gcc-65bf3316cf384588453604be6b4f0ed3751a8b0f.tar.gz
ppe42-gcc-65bf3316cf384588453604be6b4f0ed3751a8b0f.zip
Merged gcj-eclipse branch to trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120621 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/nio/channels')
-rw-r--r--libjava/java/nio/channels/AlreadyConnectedException.h35
-rw-r--r--libjava/java/nio/channels/AsynchronousCloseException.h35
-rw-r--r--libjava/java/nio/channels/ByteChannel.h36
-rw-r--r--libjava/java/nio/channels/CancelledKeyException.h35
-rw-r--r--libjava/java/nio/channels/Channel.h33
-rw-r--r--libjava/java/nio/channels/Channels.h47
-rw-r--r--libjava/java/nio/channels/ClosedByInterruptException.h35
-rw-r--r--libjava/java/nio/channels/ClosedChannelException.h35
-rw-r--r--libjava/java/nio/channels/ClosedSelectorException.h35
-rw-r--r--libjava/java/nio/channels/ConnectionPendingException.h35
-rw-r--r--libjava/java/nio/channels/DatagramChannel.h59
-rw-r--r--libjava/java/nio/channels/FileChannel$MapMode.h40
-rw-r--r--libjava/java/nio/channels/FileChannel.h64
-rw-r--r--libjava/java/nio/channels/FileLock.h48
-rw-r--r--libjava/java/nio/channels/FileLockInterruptionException.h35
-rw-r--r--libjava/java/nio/channels/GatheringByteChannel.h39
-rw-r--r--libjava/java/nio/channels/IllegalBlockingModeException.h35
-rw-r--r--libjava/java/nio/channels/IllegalSelectorException.h35
-rw-r--r--libjava/java/nio/channels/InterruptibleChannel.h33
-rw-r--r--libjava/java/nio/channels/NoConnectionPendingException.h35
-rw-r--r--libjava/java/nio/channels/NonReadableChannelException.h35
-rw-r--r--libjava/java/nio/channels/NonWritableChannelException.h35
-rw-r--r--libjava/java/nio/channels/NotYetBoundException.h35
-rw-r--r--libjava/java/nio/channels/NotYetConnectedException.h35
-rw-r--r--libjava/java/nio/channels/OverlappingFileLockException.h35
-rw-r--r--libjava/java/nio/channels/Pipe$SinkChannel.h44
-rw-r--r--libjava/java/nio/channels/Pipe$SourceChannel.h44
-rw-r--r--libjava/java/nio/channels/Pipe.h38
-rw-r--r--libjava/java/nio/channels/ReadableByteChannel.h35
-rw-r--r--libjava/java/nio/channels/ScatteringByteChannel.h39
-rw-r--r--libjava/java/nio/channels/SelectableChannel.h48
-rw-r--r--libjava/java/nio/channels/SelectionKey.h55
-rw-r--r--libjava/java/nio/channels/Selector.h47
-rw-r--r--libjava/java/nio/channels/ServerSocketChannel.h46
-rw-r--r--libjava/java/nio/channels/SocketChannel.h59
-rw-r--r--libjava/java/nio/channels/UnresolvedAddressException.h35
-rw-r--r--libjava/java/nio/channels/UnsupportedAddressTypeException.h35
-rw-r--r--libjava/java/nio/channels/VMChannels.h52
-rw-r--r--libjava/java/nio/channels/WritableByteChannel.h35
-rw-r--r--libjava/java/nio/channels/spi/AbstractInterruptibleChannel.h46
-rw-r--r--libjava/java/nio/channels/spi/AbstractSelectableChannel.h64
-rw-r--r--libjava/java/nio/channels/spi/AbstractSelectionKey.h41
-rw-r--r--libjava/java/nio/channels/spi/AbstractSelector.h60
-rw-r--r--libjava/java/nio/channels/spi/SelectorProvider.h50
44 files changed, 1832 insertions, 0 deletions
diff --git a/libjava/java/nio/channels/AlreadyConnectedException.h b/libjava/java/nio/channels/AlreadyConnectedException.h
new file mode 100644
index 00000000000..08d6d479ea9
--- /dev/null
+++ b/libjava/java/nio/channels/AlreadyConnectedException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_AlreadyConnectedException__
+#define __java_nio_channels_AlreadyConnectedException__
+
+#pragma interface
+
+#include <java/lang/IllegalStateException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class AlreadyConnectedException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::AlreadyConnectedException : public ::java::lang::IllegalStateException
+{
+
+public:
+ AlreadyConnectedException();
+private:
+ static const jlong serialVersionUID = -7331895245053773357LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_AlreadyConnectedException__
diff --git a/libjava/java/nio/channels/AsynchronousCloseException.h b/libjava/java/nio/channels/AsynchronousCloseException.h
new file mode 100644
index 00000000000..bfcbf2eb46c
--- /dev/null
+++ b/libjava/java/nio/channels/AsynchronousCloseException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_AsynchronousCloseException__
+#define __java_nio_channels_AsynchronousCloseException__
+
+#pragma interface
+
+#include <java/nio/channels/ClosedChannelException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class AsynchronousCloseException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::AsynchronousCloseException : public ::java::nio::channels::ClosedChannelException
+{
+
+public:
+ AsynchronousCloseException();
+private:
+ static const jlong serialVersionUID = 6891178312432313966LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_AsynchronousCloseException__
diff --git a/libjava/java/nio/channels/ByteChannel.h b/libjava/java/nio/channels/ByteChannel.h
new file mode 100644
index 00000000000..a813648137a
--- /dev/null
+++ b/libjava/java/nio/channels/ByteChannel.h
@@ -0,0 +1,36 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_ByteChannel__
+#define __java_nio_channels_ByteChannel__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ class ByteBuffer;
+ namespace channels
+ {
+ class ByteChannel;
+ }
+ }
+ }
+}
+
+class java::nio::channels::ByteChannel : public ::java::lang::Object
+{
+
+public:
+ virtual jint read(::java::nio::ByteBuffer *) = 0;
+ virtual jboolean isOpen() = 0;
+ virtual void close() = 0;
+ virtual jint write(::java::nio::ByteBuffer *) = 0;
+ static ::java::lang::Class class$;
+} __attribute__ ((java_interface));
+
+#endif // __java_nio_channels_ByteChannel__
diff --git a/libjava/java/nio/channels/CancelledKeyException.h b/libjava/java/nio/channels/CancelledKeyException.h
new file mode 100644
index 00000000000..742185f1fd7
--- /dev/null
+++ b/libjava/java/nio/channels/CancelledKeyException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_CancelledKeyException__
+#define __java_nio_channels_CancelledKeyException__
+
+#pragma interface
+
+#include <java/lang/IllegalStateException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class CancelledKeyException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::CancelledKeyException : public ::java::lang::IllegalStateException
+{
+
+public:
+ CancelledKeyException();
+private:
+ static const jlong serialVersionUID = -8438032138028814268LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_CancelledKeyException__
diff --git a/libjava/java/nio/channels/Channel.h b/libjava/java/nio/channels/Channel.h
new file mode 100644
index 00000000000..fc0177d6f78
--- /dev/null
+++ b/libjava/java/nio/channels/Channel.h
@@ -0,0 +1,33 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_Channel__
+#define __java_nio_channels_Channel__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class Channel;
+ }
+ }
+ }
+}
+
+class java::nio::channels::Channel : public ::java::lang::Object
+{
+
+public:
+ virtual jboolean isOpen() = 0;
+ virtual void close() = 0;
+ static ::java::lang::Class class$;
+} __attribute__ ((java_interface));
+
+#endif // __java_nio_channels_Channel__
diff --git a/libjava/java/nio/channels/Channels.h b/libjava/java/nio/channels/Channels.h
new file mode 100644
index 00000000000..384156483e0
--- /dev/null
+++ b/libjava/java/nio/channels/Channels.h
@@ -0,0 +1,47 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_Channels__
+#define __java_nio_channels_Channels__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class Channels;
+ class ReadableByteChannel;
+ class WritableByteChannel;
+ }
+ namespace charset
+ {
+ class CharsetDecoder;
+ class CharsetEncoder;
+ }
+ }
+ }
+}
+
+class java::nio::channels::Channels : public ::java::lang::Object
+{
+
+ Channels();
+public:
+ static ::java::io::InputStream * newInputStream(::java::nio::channels::ReadableByteChannel *);
+ static ::java::io::OutputStream * newOutputStream(::java::nio::channels::WritableByteChannel *);
+ static ::java::nio::channels::ReadableByteChannel * newChannel(::java::io::InputStream *);
+ static ::java::nio::channels::WritableByteChannel * newChannel(::java::io::OutputStream *);
+ static ::java::io::Reader * newReader(::java::nio::channels::ReadableByteChannel *, ::java::nio::charset::CharsetDecoder *, jint);
+ static ::java::io::Reader * newReader(::java::nio::channels::ReadableByteChannel *, ::java::lang::String *);
+ static ::java::io::Writer * newWriter(::java::nio::channels::WritableByteChannel *, ::java::nio::charset::CharsetEncoder *, jint);
+ static ::java::io::Writer * newWriter(::java::nio::channels::WritableByteChannel *, ::java::lang::String *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_Channels__
diff --git a/libjava/java/nio/channels/ClosedByInterruptException.h b/libjava/java/nio/channels/ClosedByInterruptException.h
new file mode 100644
index 00000000000..742dddc6048
--- /dev/null
+++ b/libjava/java/nio/channels/ClosedByInterruptException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_ClosedByInterruptException__
+#define __java_nio_channels_ClosedByInterruptException__
+
+#pragma interface
+
+#include <java/nio/channels/AsynchronousCloseException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class ClosedByInterruptException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::ClosedByInterruptException : public ::java::nio::channels::AsynchronousCloseException
+{
+
+public:
+ ClosedByInterruptException();
+private:
+ static const jlong serialVersionUID = -4488191543534286750LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_ClosedByInterruptException__
diff --git a/libjava/java/nio/channels/ClosedChannelException.h b/libjava/java/nio/channels/ClosedChannelException.h
new file mode 100644
index 00000000000..3bca678e5a2
--- /dev/null
+++ b/libjava/java/nio/channels/ClosedChannelException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_ClosedChannelException__
+#define __java_nio_channels_ClosedChannelException__
+
+#pragma interface
+
+#include <java/io/IOException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class ClosedChannelException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::ClosedChannelException : public ::java::io::IOException
+{
+
+public:
+ ClosedChannelException();
+private:
+ static const jlong serialVersionUID = 882777185433553857LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_ClosedChannelException__
diff --git a/libjava/java/nio/channels/ClosedSelectorException.h b/libjava/java/nio/channels/ClosedSelectorException.h
new file mode 100644
index 00000000000..80b821ed41a
--- /dev/null
+++ b/libjava/java/nio/channels/ClosedSelectorException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_ClosedSelectorException__
+#define __java_nio_channels_ClosedSelectorException__
+
+#pragma interface
+
+#include <java/lang/IllegalStateException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class ClosedSelectorException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::ClosedSelectorException : public ::java::lang::IllegalStateException
+{
+
+public:
+ ClosedSelectorException();
+private:
+ static const jlong serialVersionUID = 6466297122317847835LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_ClosedSelectorException__
diff --git a/libjava/java/nio/channels/ConnectionPendingException.h b/libjava/java/nio/channels/ConnectionPendingException.h
new file mode 100644
index 00000000000..29f48307124
--- /dev/null
+++ b/libjava/java/nio/channels/ConnectionPendingException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_ConnectionPendingException__
+#define __java_nio_channels_ConnectionPendingException__
+
+#pragma interface
+
+#include <java/lang/IllegalStateException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class ConnectionPendingException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::ConnectionPendingException : public ::java::lang::IllegalStateException
+{
+
+public:
+ ConnectionPendingException();
+private:
+ static const jlong serialVersionUID = 2008393366501760879LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_ConnectionPendingException__
diff --git a/libjava/java/nio/channels/DatagramChannel.h b/libjava/java/nio/channels/DatagramChannel.h
new file mode 100644
index 00000000000..cb2dabcc0fa
--- /dev/null
+++ b/libjava/java/nio/channels/DatagramChannel.h
@@ -0,0 +1,59 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_DatagramChannel__
+#define __java_nio_channels_DatagramChannel__
+
+#pragma interface
+
+#include <java/nio/channels/spi/AbstractSelectableChannel.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace java
+ {
+ namespace net
+ {
+ class DatagramSocket;
+ class SocketAddress;
+ }
+ namespace nio
+ {
+ class ByteBuffer;
+ namespace channels
+ {
+ class DatagramChannel;
+ namespace spi
+ {
+ class SelectorProvider;
+ }
+ }
+ }
+ }
+}
+
+class java::nio::channels::DatagramChannel : public ::java::nio::channels::spi::AbstractSelectableChannel
+{
+
+public: // actually protected
+ DatagramChannel(::java::nio::channels::spi::SelectorProvider *);
+public:
+ static ::java::nio::channels::DatagramChannel * open();
+ virtual jlong read(JArray< ::java::nio::ByteBuffer * > *);
+ virtual jlong write(JArray< ::java::nio::ByteBuffer * > *);
+ virtual ::java::nio::channels::DatagramChannel * connect(::java::net::SocketAddress *) = 0;
+ virtual ::java::nio::channels::DatagramChannel * disconnect() = 0;
+ virtual jboolean isConnected() = 0;
+ virtual jint read(::java::nio::ByteBuffer *) = 0;
+ virtual jlong read(JArray< ::java::nio::ByteBuffer * > *, jint, jint) = 0;
+ virtual ::java::net::SocketAddress * receive(::java::nio::ByteBuffer *) = 0;
+ virtual jint send(::java::nio::ByteBuffer *, ::java::net::SocketAddress *) = 0;
+ virtual ::java::net::DatagramSocket * socket() = 0;
+ virtual jint write(::java::nio::ByteBuffer *) = 0;
+ virtual jlong write(JArray< ::java::nio::ByteBuffer * > *, jint, jint) = 0;
+ virtual jint validOps();
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_DatagramChannel__
diff --git a/libjava/java/nio/channels/FileChannel$MapMode.h b/libjava/java/nio/channels/FileChannel$MapMode.h
new file mode 100644
index 00000000000..954e6979e96
--- /dev/null
+++ b/libjava/java/nio/channels/FileChannel$MapMode.h
@@ -0,0 +1,40 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_FileChannel$MapMode__
+#define __java_nio_channels_FileChannel$MapMode__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class FileChannel$MapMode;
+ }
+ }
+ }
+}
+
+class java::nio::channels::FileChannel$MapMode : public ::java::lang::Object
+{
+
+public: // actually package-private
+ FileChannel$MapMode(jint);
+public:
+ virtual ::java::lang::String * toString();
+public: // actually package-private
+ jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) m;
+public:
+ static ::java::nio::channels::FileChannel$MapMode * READ_ONLY;
+ static ::java::nio::channels::FileChannel$MapMode * READ_WRITE;
+ static ::java::nio::channels::FileChannel$MapMode * PRIVATE;
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_FileChannel$MapMode__
diff --git a/libjava/java/nio/channels/FileChannel.h b/libjava/java/nio/channels/FileChannel.h
new file mode 100644
index 00000000000..10cc314ccb9
--- /dev/null
+++ b/libjava/java/nio/channels/FileChannel.h
@@ -0,0 +1,64 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_FileChannel__
+#define __java_nio_channels_FileChannel__
+
+#pragma interface
+
+#include <java/nio/channels/spi/AbstractInterruptibleChannel.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ class ByteBuffer;
+ class MappedByteBuffer;
+ namespace channels
+ {
+ class FileChannel;
+ class FileChannel$MapMode;
+ class FileLock;
+ class ReadableByteChannel;
+ class WritableByteChannel;
+ }
+ }
+ }
+}
+
+class java::nio::channels::FileChannel : public ::java::nio::channels::spi::AbstractInterruptibleChannel
+{
+
+public: // actually protected
+ FileChannel();
+public:
+ virtual ::java::nio::MappedByteBuffer * map(::java::nio::channels::FileChannel$MapMode *, jlong, jlong) = 0;
+ virtual jlong size() = 0;
+ virtual jlong write(JArray< ::java::nio::ByteBuffer * > *);
+ virtual jint write(::java::nio::ByteBuffer *) = 0;
+ virtual jint write(::java::nio::ByteBuffer *, jlong) = 0;
+ virtual jlong write(JArray< ::java::nio::ByteBuffer * > *, jint, jint) = 0;
+ virtual jlong read(JArray< ::java::nio::ByteBuffer * > *, jint, jint) = 0;
+ virtual jlong read(JArray< ::java::nio::ByteBuffer * > *);
+ virtual jint read(::java::nio::ByteBuffer *) = 0;
+ virtual jint read(::java::nio::ByteBuffer *, jlong) = 0;
+public: // actually protected
+ virtual void implCloseChannel() = 0;
+public:
+ virtual void force(jboolean) = 0;
+ virtual ::java::nio::channels::FileLock * lock();
+ virtual ::java::nio::channels::FileLock * lock(jlong, jlong, jboolean) = 0;
+ virtual ::java::nio::channels::FileLock * tryLock();
+ virtual ::java::nio::channels::FileLock * tryLock(jlong, jlong, jboolean) = 0;
+ virtual jlong position() = 0;
+ virtual ::java::nio::channels::FileChannel * position(jlong) = 0;
+ virtual jlong transferTo(jlong, jlong, ::java::nio::channels::WritableByteChannel *) = 0;
+ virtual jlong transferFrom(::java::nio::channels::ReadableByteChannel *, jlong, jlong) = 0;
+ virtual ::java::nio::channels::FileChannel * truncate(jlong) = 0;
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_FileChannel__
diff --git a/libjava/java/nio/channels/FileLock.h b/libjava/java/nio/channels/FileLock.h
new file mode 100644
index 00000000000..fb358583518
--- /dev/null
+++ b/libjava/java/nio/channels/FileLock.h
@@ -0,0 +1,48 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_FileLock__
+#define __java_nio_channels_FileLock__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class FileChannel;
+ class FileLock;
+ }
+ }
+ }
+}
+
+class java::nio::channels::FileLock : public ::java::lang::Object
+{
+
+public: // actually protected
+ FileLock(::java::nio::channels::FileChannel *, jlong, jlong, jboolean);
+public:
+ virtual jboolean isValid() = 0;
+ virtual void release() = 0;
+ virtual ::java::nio::channels::FileChannel * channel();
+ virtual jboolean isShared();
+ virtual jboolean overlaps(jlong, jlong);
+ virtual jlong position();
+ virtual jlong size();
+ virtual ::java::lang::String * toString();
+private:
+ ::java::nio::channels::FileChannel * __attribute__((aligned(__alignof__( ::java::lang::Object)))) channel__;
+ jlong position__;
+ jlong size__;
+ jboolean shared;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_FileLock__
diff --git a/libjava/java/nio/channels/FileLockInterruptionException.h b/libjava/java/nio/channels/FileLockInterruptionException.h
new file mode 100644
index 00000000000..ad5e250765a
--- /dev/null
+++ b/libjava/java/nio/channels/FileLockInterruptionException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_FileLockInterruptionException__
+#define __java_nio_channels_FileLockInterruptionException__
+
+#pragma interface
+
+#include <java/io/IOException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class FileLockInterruptionException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::FileLockInterruptionException : public ::java::io::IOException
+{
+
+public:
+ FileLockInterruptionException();
+private:
+ static const jlong serialVersionUID = 7104080643653532383LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_FileLockInterruptionException__
diff --git a/libjava/java/nio/channels/GatheringByteChannel.h b/libjava/java/nio/channels/GatheringByteChannel.h
new file mode 100644
index 00000000000..c69c1954aff
--- /dev/null
+++ b/libjava/java/nio/channels/GatheringByteChannel.h
@@ -0,0 +1,39 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_GatheringByteChannel__
+#define __java_nio_channels_GatheringByteChannel__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ class ByteBuffer;
+ namespace channels
+ {
+ class GatheringByteChannel;
+ }
+ }
+ }
+}
+
+class java::nio::channels::GatheringByteChannel : public ::java::lang::Object
+{
+
+public:
+ virtual jlong write(JArray< ::java::nio::ByteBuffer * > *, jint, jint) = 0;
+ virtual jlong write(JArray< ::java::nio::ByteBuffer * > *) = 0;
+ virtual jint write(::java::nio::ByteBuffer *) = 0;
+ virtual jboolean isOpen() = 0;
+ virtual void close() = 0;
+ static ::java::lang::Class class$;
+} __attribute__ ((java_interface));
+
+#endif // __java_nio_channels_GatheringByteChannel__
diff --git a/libjava/java/nio/channels/IllegalBlockingModeException.h b/libjava/java/nio/channels/IllegalBlockingModeException.h
new file mode 100644
index 00000000000..38eda03799b
--- /dev/null
+++ b/libjava/java/nio/channels/IllegalBlockingModeException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_IllegalBlockingModeException__
+#define __java_nio_channels_IllegalBlockingModeException__
+
+#pragma interface
+
+#include <java/lang/IllegalStateException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class IllegalBlockingModeException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::IllegalBlockingModeException : public ::java::lang::IllegalStateException
+{
+
+public:
+ IllegalBlockingModeException();
+private:
+ static const jlong serialVersionUID = -3335774961855590474LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_IllegalBlockingModeException__
diff --git a/libjava/java/nio/channels/IllegalSelectorException.h b/libjava/java/nio/channels/IllegalSelectorException.h
new file mode 100644
index 00000000000..9f137e423b7
--- /dev/null
+++ b/libjava/java/nio/channels/IllegalSelectorException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_IllegalSelectorException__
+#define __java_nio_channels_IllegalSelectorException__
+
+#pragma interface
+
+#include <java/lang/IllegalArgumentException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class IllegalSelectorException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::IllegalSelectorException : public ::java::lang::IllegalArgumentException
+{
+
+public:
+ IllegalSelectorException();
+private:
+ static const jlong serialVersionUID = -8406323347253320987LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_IllegalSelectorException__
diff --git a/libjava/java/nio/channels/InterruptibleChannel.h b/libjava/java/nio/channels/InterruptibleChannel.h
new file mode 100644
index 00000000000..fa8a68385de
--- /dev/null
+++ b/libjava/java/nio/channels/InterruptibleChannel.h
@@ -0,0 +1,33 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_InterruptibleChannel__
+#define __java_nio_channels_InterruptibleChannel__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class InterruptibleChannel;
+ }
+ }
+ }
+}
+
+class java::nio::channels::InterruptibleChannel : public ::java::lang::Object
+{
+
+public:
+ virtual void close() = 0;
+ virtual jboolean isOpen() = 0;
+ static ::java::lang::Class class$;
+} __attribute__ ((java_interface));
+
+#endif // __java_nio_channels_InterruptibleChannel__
diff --git a/libjava/java/nio/channels/NoConnectionPendingException.h b/libjava/java/nio/channels/NoConnectionPendingException.h
new file mode 100644
index 00000000000..5be57aefd7c
--- /dev/null
+++ b/libjava/java/nio/channels/NoConnectionPendingException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_NoConnectionPendingException__
+#define __java_nio_channels_NoConnectionPendingException__
+
+#pragma interface
+
+#include <java/lang/IllegalStateException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class NoConnectionPendingException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::NoConnectionPendingException : public ::java::lang::IllegalStateException
+{
+
+public:
+ NoConnectionPendingException();
+private:
+ static const jlong serialVersionUID = -8296561183633134743LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_NoConnectionPendingException__
diff --git a/libjava/java/nio/channels/NonReadableChannelException.h b/libjava/java/nio/channels/NonReadableChannelException.h
new file mode 100644
index 00000000000..210d8369b1d
--- /dev/null
+++ b/libjava/java/nio/channels/NonReadableChannelException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_NonReadableChannelException__
+#define __java_nio_channels_NonReadableChannelException__
+
+#pragma interface
+
+#include <java/lang/IllegalStateException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class NonReadableChannelException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::NonReadableChannelException : public ::java::lang::IllegalStateException
+{
+
+public:
+ NonReadableChannelException();
+private:
+ static const jlong serialVersionUID = -3200915679294993514LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_NonReadableChannelException__
diff --git a/libjava/java/nio/channels/NonWritableChannelException.h b/libjava/java/nio/channels/NonWritableChannelException.h
new file mode 100644
index 00000000000..4a56ef98898
--- /dev/null
+++ b/libjava/java/nio/channels/NonWritableChannelException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_NonWritableChannelException__
+#define __java_nio_channels_NonWritableChannelException__
+
+#pragma interface
+
+#include <java/lang/IllegalStateException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class NonWritableChannelException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::NonWritableChannelException : public ::java::lang::IllegalStateException
+{
+
+public:
+ NonWritableChannelException();
+private:
+ static const jlong serialVersionUID = -7071230488279011621LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_NonWritableChannelException__
diff --git a/libjava/java/nio/channels/NotYetBoundException.h b/libjava/java/nio/channels/NotYetBoundException.h
new file mode 100644
index 00000000000..d4f1ad2d66e
--- /dev/null
+++ b/libjava/java/nio/channels/NotYetBoundException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_NotYetBoundException__
+#define __java_nio_channels_NotYetBoundException__
+
+#pragma interface
+
+#include <java/lang/IllegalStateException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class NotYetBoundException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::NotYetBoundException : public ::java::lang::IllegalStateException
+{
+
+public:
+ NotYetBoundException();
+private:
+ static const jlong serialVersionUID = 4640999303950202242LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_NotYetBoundException__
diff --git a/libjava/java/nio/channels/NotYetConnectedException.h b/libjava/java/nio/channels/NotYetConnectedException.h
new file mode 100644
index 00000000000..a38417a8271
--- /dev/null
+++ b/libjava/java/nio/channels/NotYetConnectedException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_NotYetConnectedException__
+#define __java_nio_channels_NotYetConnectedException__
+
+#pragma interface
+
+#include <java/lang/IllegalStateException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class NotYetConnectedException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::NotYetConnectedException : public ::java::lang::IllegalStateException
+{
+
+public:
+ NotYetConnectedException();
+private:
+ static const jlong serialVersionUID = 4697316551909513464LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_NotYetConnectedException__
diff --git a/libjava/java/nio/channels/OverlappingFileLockException.h b/libjava/java/nio/channels/OverlappingFileLockException.h
new file mode 100644
index 00000000000..b2551f9070c
--- /dev/null
+++ b/libjava/java/nio/channels/OverlappingFileLockException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_OverlappingFileLockException__
+#define __java_nio_channels_OverlappingFileLockException__
+
+#pragma interface
+
+#include <java/lang/IllegalStateException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class OverlappingFileLockException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::OverlappingFileLockException : public ::java::lang::IllegalStateException
+{
+
+public:
+ OverlappingFileLockException();
+private:
+ static const jlong serialVersionUID = 2047812138163068433LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_OverlappingFileLockException__
diff --git a/libjava/java/nio/channels/Pipe$SinkChannel.h b/libjava/java/nio/channels/Pipe$SinkChannel.h
new file mode 100644
index 00000000000..d6842b79b2b
--- /dev/null
+++ b/libjava/java/nio/channels/Pipe$SinkChannel.h
@@ -0,0 +1,44 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_Pipe$SinkChannel__
+#define __java_nio_channels_Pipe$SinkChannel__
+
+#pragma interface
+
+#include <java/nio/channels/spi/AbstractSelectableChannel.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ class ByteBuffer;
+ namespace channels
+ {
+ class Pipe$SinkChannel;
+ namespace spi
+ {
+ class SelectorProvider;
+ }
+ }
+ }
+ }
+}
+
+class java::nio::channels::Pipe$SinkChannel : public ::java::nio::channels::spi::AbstractSelectableChannel
+{
+
+public: // actually protected
+ Pipe$SinkChannel(::java::nio::channels::spi::SelectorProvider *);
+public:
+ virtual jint validOps();
+ virtual jint write(::java::nio::ByteBuffer *) = 0;
+ virtual jlong write(JArray< ::java::nio::ByteBuffer * > *, jint, jint) = 0;
+ virtual jlong write(JArray< ::java::nio::ByteBuffer * > *) = 0;
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_Pipe$SinkChannel__
diff --git a/libjava/java/nio/channels/Pipe$SourceChannel.h b/libjava/java/nio/channels/Pipe$SourceChannel.h
new file mode 100644
index 00000000000..9bc78ea3bfa
--- /dev/null
+++ b/libjava/java/nio/channels/Pipe$SourceChannel.h
@@ -0,0 +1,44 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_Pipe$SourceChannel__
+#define __java_nio_channels_Pipe$SourceChannel__
+
+#pragma interface
+
+#include <java/nio/channels/spi/AbstractSelectableChannel.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ class ByteBuffer;
+ namespace channels
+ {
+ class Pipe$SourceChannel;
+ namespace spi
+ {
+ class SelectorProvider;
+ }
+ }
+ }
+ }
+}
+
+class java::nio::channels::Pipe$SourceChannel : public ::java::nio::channels::spi::AbstractSelectableChannel
+{
+
+public: // actually protected
+ Pipe$SourceChannel(::java::nio::channels::spi::SelectorProvider *);
+public:
+ virtual jint validOps();
+ virtual jint read(::java::nio::ByteBuffer *) = 0;
+ virtual jlong read(JArray< ::java::nio::ByteBuffer * > *, jint, jint) = 0;
+ virtual jlong read(JArray< ::java::nio::ByteBuffer * > *) = 0;
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_Pipe$SourceChannel__
diff --git a/libjava/java/nio/channels/Pipe.h b/libjava/java/nio/channels/Pipe.h
new file mode 100644
index 00000000000..771dca23e3e
--- /dev/null
+++ b/libjava/java/nio/channels/Pipe.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_Pipe__
+#define __java_nio_channels_Pipe__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class Pipe;
+ class Pipe$SinkChannel;
+ class Pipe$SourceChannel;
+ }
+ }
+ }
+}
+
+class java::nio::channels::Pipe : public ::java::lang::Object
+{
+
+public: // actually protected
+ Pipe();
+public:
+ static ::java::nio::channels::Pipe * open();
+ virtual ::java::nio::channels::Pipe$SinkChannel * sink() = 0;
+ virtual ::java::nio::channels::Pipe$SourceChannel * source() = 0;
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_Pipe__
diff --git a/libjava/java/nio/channels/ReadableByteChannel.h b/libjava/java/nio/channels/ReadableByteChannel.h
new file mode 100644
index 00000000000..9f3e4cf0168
--- /dev/null
+++ b/libjava/java/nio/channels/ReadableByteChannel.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_ReadableByteChannel__
+#define __java_nio_channels_ReadableByteChannel__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ class ByteBuffer;
+ namespace channels
+ {
+ class ReadableByteChannel;
+ }
+ }
+ }
+}
+
+class java::nio::channels::ReadableByteChannel : public ::java::lang::Object
+{
+
+public:
+ virtual jint read(::java::nio::ByteBuffer *) = 0;
+ virtual jboolean isOpen() = 0;
+ virtual void close() = 0;
+ static ::java::lang::Class class$;
+} __attribute__ ((java_interface));
+
+#endif // __java_nio_channels_ReadableByteChannel__
diff --git a/libjava/java/nio/channels/ScatteringByteChannel.h b/libjava/java/nio/channels/ScatteringByteChannel.h
new file mode 100644
index 00000000000..eeba864d41a
--- /dev/null
+++ b/libjava/java/nio/channels/ScatteringByteChannel.h
@@ -0,0 +1,39 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_ScatteringByteChannel__
+#define __java_nio_channels_ScatteringByteChannel__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ class ByteBuffer;
+ namespace channels
+ {
+ class ScatteringByteChannel;
+ }
+ }
+ }
+}
+
+class java::nio::channels::ScatteringByteChannel : public ::java::lang::Object
+{
+
+public:
+ virtual jlong read(JArray< ::java::nio::ByteBuffer * > *, jint, jint) = 0;
+ virtual jlong read(JArray< ::java::nio::ByteBuffer * > *) = 0;
+ virtual jint read(::java::nio::ByteBuffer *) = 0;
+ virtual jboolean isOpen() = 0;
+ virtual void close() = 0;
+ static ::java::lang::Class class$;
+} __attribute__ ((java_interface));
+
+#endif // __java_nio_channels_ScatteringByteChannel__
diff --git a/libjava/java/nio/channels/SelectableChannel.h b/libjava/java/nio/channels/SelectableChannel.h
new file mode 100644
index 00000000000..82cf8288007
--- /dev/null
+++ b/libjava/java/nio/channels/SelectableChannel.h
@@ -0,0 +1,48 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_SelectableChannel__
+#define __java_nio_channels_SelectableChannel__
+
+#pragma interface
+
+#include <java/nio/channels/spi/AbstractInterruptibleChannel.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class SelectableChannel;
+ class SelectionKey;
+ class Selector;
+ namespace spi
+ {
+ class SelectorProvider;
+ }
+ }
+ }
+ }
+}
+
+class java::nio::channels::SelectableChannel : public ::java::nio::channels::spi::AbstractInterruptibleChannel
+{
+
+public: // actually protected
+ SelectableChannel();
+public:
+ virtual ::java::lang::Object * blockingLock() = 0;
+ virtual ::java::nio::channels::SelectableChannel * configureBlocking(jboolean) = 0;
+ virtual jboolean isBlocking() = 0;
+ virtual jboolean isRegistered() = 0;
+ virtual ::java::nio::channels::SelectionKey * keyFor(::java::nio::channels::Selector *) = 0;
+ virtual ::java::nio::channels::spi::SelectorProvider * provider() = 0;
+ virtual ::java::nio::channels::SelectionKey * register$(::java::nio::channels::Selector *, jint);
+ virtual ::java::nio::channels::SelectionKey * register$(::java::nio::channels::Selector *, jint, ::java::lang::Object *) = 0;
+ virtual jint validOps() = 0;
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_SelectableChannel__
diff --git a/libjava/java/nio/channels/SelectionKey.h b/libjava/java/nio/channels/SelectionKey.h
new file mode 100644
index 00000000000..1b6b0397467
--- /dev/null
+++ b/libjava/java/nio/channels/SelectionKey.h
@@ -0,0 +1,55 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_SelectionKey__
+#define __java_nio_channels_SelectionKey__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class SelectableChannel;
+ class SelectionKey;
+ class Selector;
+ }
+ }
+ }
+}
+
+class java::nio::channels::SelectionKey : public ::java::lang::Object
+{
+
+public: // actually protected
+ SelectionKey();
+public:
+ virtual ::java::lang::Object * attach(::java::lang::Object *);
+ virtual ::java::lang::Object * attachment();
+ virtual jboolean isAcceptable();
+ virtual jboolean isConnectable();
+ virtual jboolean isReadable();
+ virtual jboolean isWritable();
+ virtual void cancel() = 0;
+ virtual ::java::nio::channels::SelectableChannel * channel() = 0;
+ virtual jint interestOps() = 0;
+ virtual ::java::nio::channels::SelectionKey * interestOps(jint) = 0;
+ virtual jboolean isValid() = 0;
+ virtual jint readyOps() = 0;
+ virtual ::java::nio::channels::Selector * selector() = 0;
+ static const jint OP_ACCEPT = 16;
+ static const jint OP_CONNECT = 8;
+ static const jint OP_READ = 1;
+ static const jint OP_WRITE = 4;
+public: // actually package-private
+ ::java::lang::Object * __attribute__((aligned(__alignof__( ::java::lang::Object)))) attached;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_SelectionKey__
diff --git a/libjava/java/nio/channels/Selector.h b/libjava/java/nio/channels/Selector.h
new file mode 100644
index 00000000000..7d561adff4a
--- /dev/null
+++ b/libjava/java/nio/channels/Selector.h
@@ -0,0 +1,47 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_Selector__
+#define __java_nio_channels_Selector__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class Selector;
+ namespace spi
+ {
+ class SelectorProvider;
+ }
+ }
+ }
+ }
+}
+
+class java::nio::channels::Selector : public ::java::lang::Object
+{
+
+public: // actually protected
+ Selector();
+public:
+ static ::java::nio::channels::Selector * open();
+ virtual void close() = 0;
+ virtual jboolean isOpen() = 0;
+ virtual ::java::util::Set * keys() = 0;
+ virtual ::java::nio::channels::spi::SelectorProvider * provider() = 0;
+ virtual jint select() = 0;
+ virtual jint select(jlong) = 0;
+ virtual ::java::util::Set * selectedKeys() = 0;
+ virtual jint selectNow() = 0;
+ virtual ::java::nio::channels::Selector * wakeup() = 0;
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_Selector__
diff --git a/libjava/java/nio/channels/ServerSocketChannel.h b/libjava/java/nio/channels/ServerSocketChannel.h
new file mode 100644
index 00000000000..b68d0b9a5b8
--- /dev/null
+++ b/libjava/java/nio/channels/ServerSocketChannel.h
@@ -0,0 +1,46 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_ServerSocketChannel__
+#define __java_nio_channels_ServerSocketChannel__
+
+#pragma interface
+
+#include <java/nio/channels/spi/AbstractSelectableChannel.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace net
+ {
+ class ServerSocket;
+ }
+ namespace nio
+ {
+ namespace channels
+ {
+ class ServerSocketChannel;
+ class SocketChannel;
+ namespace spi
+ {
+ class SelectorProvider;
+ }
+ }
+ }
+ }
+}
+
+class java::nio::channels::ServerSocketChannel : public ::java::nio::channels::spi::AbstractSelectableChannel
+{
+
+public: // actually protected
+ ServerSocketChannel(::java::nio::channels::spi::SelectorProvider *);
+public:
+ virtual ::java::nio::channels::SocketChannel * accept() = 0;
+ virtual ::java::net::ServerSocket * socket() = 0;
+ static ::java::nio::channels::ServerSocketChannel * open();
+ virtual jint validOps();
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_ServerSocketChannel__
diff --git a/libjava/java/nio/channels/SocketChannel.h b/libjava/java/nio/channels/SocketChannel.h
new file mode 100644
index 00000000000..b742cdbdc53
--- /dev/null
+++ b/libjava/java/nio/channels/SocketChannel.h
@@ -0,0 +1,59 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_SocketChannel__
+#define __java_nio_channels_SocketChannel__
+
+#pragma interface
+
+#include <java/nio/channels/spi/AbstractSelectableChannel.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace java
+ {
+ namespace net
+ {
+ class Socket;
+ class SocketAddress;
+ }
+ namespace nio
+ {
+ class ByteBuffer;
+ namespace channels
+ {
+ class SocketChannel;
+ namespace spi
+ {
+ class SelectorProvider;
+ }
+ }
+ }
+ }
+}
+
+class java::nio::channels::SocketChannel : public ::java::nio::channels::spi::AbstractSelectableChannel
+{
+
+public: // actually protected
+ SocketChannel(::java::nio::channels::spi::SelectorProvider *);
+public:
+ static ::java::nio::channels::SocketChannel * open();
+ static ::java::nio::channels::SocketChannel * open(::java::net::SocketAddress *);
+ virtual jlong read(JArray< ::java::nio::ByteBuffer * > *);
+ virtual jlong write(JArray< ::java::nio::ByteBuffer * > *);
+ virtual jint validOps();
+ virtual jint read(::java::nio::ByteBuffer *) = 0;
+ virtual jboolean connect(::java::net::SocketAddress *) = 0;
+ virtual jboolean finishConnect() = 0;
+ virtual jboolean isConnected() = 0;
+ virtual jboolean isConnectionPending() = 0;
+ virtual jlong read(JArray< ::java::nio::ByteBuffer * > *, jint, jint) = 0;
+ virtual ::java::net::Socket * socket() = 0;
+ virtual jint write(::java::nio::ByteBuffer *) = 0;
+ virtual jlong write(JArray< ::java::nio::ByteBuffer * > *, jint, jint) = 0;
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_SocketChannel__
diff --git a/libjava/java/nio/channels/UnresolvedAddressException.h b/libjava/java/nio/channels/UnresolvedAddressException.h
new file mode 100644
index 00000000000..2a3eefdce25
--- /dev/null
+++ b/libjava/java/nio/channels/UnresolvedAddressException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_UnresolvedAddressException__
+#define __java_nio_channels_UnresolvedAddressException__
+
+#pragma interface
+
+#include <java/lang/IllegalArgumentException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class UnresolvedAddressException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::UnresolvedAddressException : public ::java::lang::IllegalArgumentException
+{
+
+public:
+ UnresolvedAddressException();
+private:
+ static const jlong serialVersionUID = 6136959093620794148LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_UnresolvedAddressException__
diff --git a/libjava/java/nio/channels/UnsupportedAddressTypeException.h b/libjava/java/nio/channels/UnsupportedAddressTypeException.h
new file mode 100644
index 00000000000..7f63dd76ede
--- /dev/null
+++ b/libjava/java/nio/channels/UnsupportedAddressTypeException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_UnsupportedAddressTypeException__
+#define __java_nio_channels_UnsupportedAddressTypeException__
+
+#pragma interface
+
+#include <java/lang/IllegalArgumentException.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class UnsupportedAddressTypeException;
+ }
+ }
+ }
+}
+
+class java::nio::channels::UnsupportedAddressTypeException : public ::java::lang::IllegalArgumentException
+{
+
+public:
+ UnsupportedAddressTypeException();
+private:
+ static const jlong serialVersionUID = -2964323842829700493LL;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_UnsupportedAddressTypeException__
diff --git a/libjava/java/nio/channels/VMChannels.h b/libjava/java/nio/channels/VMChannels.h
new file mode 100644
index 00000000000..3706d9d8510
--- /dev/null
+++ b/libjava/java/nio/channels/VMChannels.h
@@ -0,0 +1,52 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_VMChannels__
+#define __java_nio_channels_VMChannels__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class FileChannelImpl;
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class ReadableByteChannel;
+ class VMChannels;
+ class WritableByteChannel;
+ }
+ }
+ }
+}
+
+class java::nio::channels::VMChannels : public ::java::lang::Object
+{
+
+ VMChannels();
+public: // actually package-private
+ static ::java::io::FileInputStream * newInputStream(::gnu::java::nio::channels::FileChannelImpl *);
+ static ::java::io::FileOutputStream * newOutputStream(::gnu::java::nio::channels::FileChannelImpl *);
+ static ::java::io::InputStream * newInputStream(::java::nio::channels::ReadableByteChannel *);
+ static ::java::io::OutputStream * newOutputStream(::java::nio::channels::WritableByteChannel *);
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_VMChannels__
diff --git a/libjava/java/nio/channels/WritableByteChannel.h b/libjava/java/nio/channels/WritableByteChannel.h
new file mode 100644
index 00000000000..ff413d27aae
--- /dev/null
+++ b/libjava/java/nio/channels/WritableByteChannel.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_WritableByteChannel__
+#define __java_nio_channels_WritableByteChannel__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ class ByteBuffer;
+ namespace channels
+ {
+ class WritableByteChannel;
+ }
+ }
+ }
+}
+
+class java::nio::channels::WritableByteChannel : public ::java::lang::Object
+{
+
+public:
+ virtual jint write(::java::nio::ByteBuffer *) = 0;
+ virtual jboolean isOpen() = 0;
+ virtual void close() = 0;
+ static ::java::lang::Class class$;
+} __attribute__ ((java_interface));
+
+#endif // __java_nio_channels_WritableByteChannel__
diff --git a/libjava/java/nio/channels/spi/AbstractInterruptibleChannel.h b/libjava/java/nio/channels/spi/AbstractInterruptibleChannel.h
new file mode 100644
index 00000000000..f830a752bfd
--- /dev/null
+++ b/libjava/java/nio/channels/spi/AbstractInterruptibleChannel.h
@@ -0,0 +1,46 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_spi_AbstractInterruptibleChannel__
+#define __java_nio_channels_spi_AbstractInterruptibleChannel__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ namespace spi
+ {
+ class AbstractInterruptibleChannel;
+ }
+ }
+ }
+ }
+}
+
+class java::nio::channels::spi::AbstractInterruptibleChannel : public ::java::lang::Object
+{
+
+public: // actually protected
+ AbstractInterruptibleChannel();
+ virtual void begin();
+public:
+ virtual void close();
+public: // actually protected
+ virtual void end(jboolean);
+ virtual void implCloseChannel() = 0;
+public:
+ virtual jboolean isOpen();
+private:
+ jboolean __attribute__((aligned(__alignof__( ::java::lang::Object)))) closed;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_spi_AbstractInterruptibleChannel__
diff --git a/libjava/java/nio/channels/spi/AbstractSelectableChannel.h b/libjava/java/nio/channels/spi/AbstractSelectableChannel.h
new file mode 100644
index 00000000000..f126f441e22
--- /dev/null
+++ b/libjava/java/nio/channels/spi/AbstractSelectableChannel.h
@@ -0,0 +1,64 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_spi_AbstractSelectableChannel__
+#define __java_nio_channels_spi_AbstractSelectableChannel__
+
+#pragma interface
+
+#include <java/nio/channels/SelectableChannel.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class SelectableChannel;
+ class SelectionKey;
+ class Selector;
+ namespace spi
+ {
+ class AbstractSelectableChannel;
+ class SelectorProvider;
+ }
+ }
+ }
+ }
+}
+
+class java::nio::channels::spi::AbstractSelectableChannel : public ::java::nio::channels::SelectableChannel
+{
+
+public: // actually protected
+ AbstractSelectableChannel(::java::nio::channels::spi::SelectorProvider *);
+public:
+ virtual ::java::lang::Object * blockingLock();
+ virtual ::java::nio::channels::SelectableChannel * configureBlocking(jboolean);
+public: // actually protected
+ virtual void implCloseChannel();
+ virtual void implCloseSelectableChannel() = 0;
+ virtual void implConfigureBlocking(jboolean) = 0;
+public:
+ virtual jboolean isBlocking();
+ virtual jboolean isRegistered();
+ virtual ::java::nio::channels::SelectionKey * keyFor(::java::nio::channels::Selector *);
+ virtual ::java::nio::channels::spi::SelectorProvider * provider();
+private:
+ ::java::nio::channels::SelectionKey * locate(::java::nio::channels::Selector *);
+public:
+ virtual ::java::nio::channels::SelectionKey * register$(::java::nio::channels::Selector *, jint, ::java::lang::Object *);
+public: // actually package-private
+ virtual void addSelectionKey(::java::nio::channels::SelectionKey *);
+ virtual void removeSelectionKey(::java::nio::channels::SelectionKey *);
+private:
+ jboolean __attribute__((aligned(__alignof__( ::java::nio::channels::SelectableChannel)))) blocking;
+ ::java::lang::Object * LOCK;
+ ::java::nio::channels::spi::SelectorProvider * provider__;
+ ::java::util::LinkedList * keys;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_spi_AbstractSelectableChannel__
diff --git a/libjava/java/nio/channels/spi/AbstractSelectionKey.h b/libjava/java/nio/channels/spi/AbstractSelectionKey.h
new file mode 100644
index 00000000000..d64a73bfd31
--- /dev/null
+++ b/libjava/java/nio/channels/spi/AbstractSelectionKey.h
@@ -0,0 +1,41 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_spi_AbstractSelectionKey__
+#define __java_nio_channels_spi_AbstractSelectionKey__
+
+#pragma interface
+
+#include <java/nio/channels/SelectionKey.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ namespace spi
+ {
+ class AbstractSelectionKey;
+ }
+ }
+ }
+ }
+}
+
+class java::nio::channels::spi::AbstractSelectionKey : public ::java::nio::channels::SelectionKey
+{
+
+public: // actually protected
+ AbstractSelectionKey();
+public:
+ virtual void cancel();
+ virtual jboolean isValid();
+private:
+ jboolean __attribute__((aligned(__alignof__( ::java::nio::channels::SelectionKey)))) cancelled;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_spi_AbstractSelectionKey__
diff --git a/libjava/java/nio/channels/spi/AbstractSelector.h b/libjava/java/nio/channels/spi/AbstractSelector.h
new file mode 100644
index 00000000000..cf3d2b7c414
--- /dev/null
+++ b/libjava/java/nio/channels/spi/AbstractSelector.h
@@ -0,0 +1,60 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_spi_AbstractSelector__
+#define __java_nio_channels_spi_AbstractSelector__
+
+#pragma interface
+
+#include <java/nio/channels/Selector.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class SelectionKey;
+ namespace spi
+ {
+ class AbstractSelectableChannel;
+ class AbstractSelectionKey;
+ class AbstractSelector;
+ class SelectorProvider;
+ }
+ }
+ }
+ }
+}
+
+class java::nio::channels::spi::AbstractSelector : public ::java::nio::channels::Selector
+{
+
+public: // actually protected
+ AbstractSelector(::java::nio::channels::spi::SelectorProvider *);
+public:
+ virtual void close();
+ virtual jboolean isOpen();
+public: // actually protected
+ virtual void begin();
+ virtual void end();
+public:
+ virtual ::java::nio::channels::spi::SelectorProvider * provider();
+public: // actually protected
+ virtual ::java::util::Set * cancelledKeys();
+public: // actually package-private
+ virtual void cancelKey(::java::nio::channels::spi::AbstractSelectionKey *);
+public: // actually protected
+ virtual void implCloseSelector() = 0;
+ virtual ::java::nio::channels::SelectionKey * register$(::java::nio::channels::spi::AbstractSelectableChannel *, jint, ::java::lang::Object *) = 0;
+ virtual void deregister(::java::nio::channels::spi::AbstractSelectionKey *);
+private:
+ jboolean __attribute__((aligned(__alignof__( ::java::nio::channels::Selector)))) closed;
+ ::java::nio::channels::spi::SelectorProvider * provider__;
+ ::java::util::HashSet * cancelledKeys__;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_spi_AbstractSelector__
diff --git a/libjava/java/nio/channels/spi/SelectorProvider.h b/libjava/java/nio/channels/spi/SelectorProvider.h
new file mode 100644
index 00000000000..6dcf15c5fb4
--- /dev/null
+++ b/libjava/java/nio/channels/spi/SelectorProvider.h
@@ -0,0 +1,50 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_nio_channels_spi_SelectorProvider__
+#define __java_nio_channels_spi_SelectorProvider__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class DatagramChannel;
+ class Pipe;
+ class ServerSocketChannel;
+ class SocketChannel;
+ namespace spi
+ {
+ class AbstractSelector;
+ class SelectorProvider;
+ }
+ }
+ }
+ }
+}
+
+class java::nio::channels::spi::SelectorProvider : public ::java::lang::Object
+{
+
+public: // actually protected
+ SelectorProvider();
+public:
+ virtual ::java::nio::channels::DatagramChannel * openDatagramChannel() = 0;
+ virtual ::java::nio::channels::Pipe * openPipe() = 0;
+ virtual ::java::nio::channels::spi::AbstractSelector * openSelector() = 0;
+ virtual ::java::nio::channels::ServerSocketChannel * openServerSocketChannel() = 0;
+ virtual ::java::nio::channels::SocketChannel * openSocketChannel() = 0;
+ static ::java::nio::channels::spi::SelectorProvider * provider();
+private:
+ static ::java::nio::channels::spi::SelectorProvider * systemDefaultProvider;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_nio_channels_spi_SelectorProvider__
OpenPOWER on IntegriCloud