3 /* Copyright (C) 2003, 2004 Free Software Foundation
5 This file is part of libgcj.
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
18 #include <gnu/java/nio/PipeImpl.h>
19 #include <gnu/java/nio/VMPipe.h>
20 //#include <gnu/java/nio/PipeImpl$SinkChannelImpl.h>
21 //#include <gnu/java/nio/PipeImpl$SourceChannelImpl.h>
22 #include <java/io/IOException.h>
23 #include <java/nio/channels/spi/SelectorProvider.h>
26 gnu::java::nio::VMPipe::init (gnu::java::nio::PipeImpl*, /*self*/
27 ::java::nio::channels::spi::SelectorProvider*
32 if (_Jv_pipe (filedes) < 0)
33 throw new ::java::io::IOException (JvNewStringUTF (strerror (errno)));
36 source = new gnu::java::nio::PipeImpl$SourceChannelImpl
37 (this, provider, filedes [0]);
38 sink = new gnu::java::nio::PipeImpl$SinkChannelImpl
39 (this, provider, filedes [1]);