2003-02-11 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/natCharBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/natDoubleBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/natFloatBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/natIntBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/natLongBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/natShortBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/SelectorProviderImpl.java (openDatagramChannel): Throws IOException. (openPipe): Throws IOException. (openSelector): Throws IOException. (openServerSocketChannel): Throws IOException. (openSocketChannel): Throws IOException. * gnu/java/nio/ServerSocketChannelImpl.java (ServerSocketChannelImpl): Throws IOException. (implCloseSelectableChannel): Throws IOException. (implConfigureBlocking): Throws IOException. * java/nio/ByteBuffer.java (readOnly): Removed. (hasArray): Use isReadOnly() instead of readOnly. (array): Use isReadOnly() instead of readOnly. (arrayOffset): Use isReadOnly() instead of readOnly. * java/nio/CharBuffer.java (CharBuffer): Implements Cloneable and CharSequence. From-SVN: r62688
This commit is contained in:
parent
c728da61c6
commit
194ea9ced6
11 changed files with 57 additions and 618 deletions
|
@ -37,6 +37,7 @@ exception statement from your version. */
|
|||
|
||||
package gnu.java.nio;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.channels.DatagramChannel;
|
||||
import java.nio.channels.Pipe;
|
||||
import java.nio.channels.ServerSocketChannel;
|
||||
|
@ -51,26 +52,31 @@ public class SelectorProviderImpl extends SelectorProvider
|
|||
}
|
||||
|
||||
public DatagramChannel openDatagramChannel ()
|
||||
throws IOException
|
||||
{
|
||||
return new DatagramChannelImpl (this);
|
||||
}
|
||||
|
||||
public Pipe openPipe ()
|
||||
throws IOException
|
||||
{
|
||||
return new PipeImpl ();
|
||||
}
|
||||
|
||||
public AbstractSelector openSelector ()
|
||||
throws IOException
|
||||
{
|
||||
return new SelectorImpl (this);
|
||||
}
|
||||
|
||||
public ServerSocketChannel openServerSocketChannel ()
|
||||
throws IOException
|
||||
{
|
||||
return new ServerSocketChannelImpl (this);
|
||||
}
|
||||
|
||||
public SocketChannel openSocketChannel ()
|
||||
throws IOException
|
||||
{
|
||||
return new SocketChannelImpl (this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue