Buffer.java: Implemented.

2002-11-13  Michael Koch <konqueror@gmx.de>

	* java/nio/Buffer.java: Implemented.
	* java/nio/CharBuffer.java: New file.
	* java/nio/InvalidMarkException.java: New file.
	* java/nio/channels/DatagramChannel.java: Implemented.
	* java/nio/channels/ServerSocketChannel.java: Implemented.
	* java/nio/channels/SocketChannel.java: Implemented.
	* java/nio/channels/spi/AbstractChannel.java: Removed.
	* java/nio/channels/spi/AbstractSelectableChannel.java:
	Implemented.
	* java/nio/charset/Charset.java:
	Merge from Classpath.
	* java/nio/charset/CharsetDecoder.java: New file.
	* java/nio/charset/CharsetEncoder.java: New file.
	* java/nio/charset/CoderResult.java: New file.
	* Makefile.am (ordinary_java_source_files): Added new files.
	* Makefile.in: Regenerated.

From-SVN: r59075
This commit is contained in:
Michael Koch 2002-11-13 12:21:26 +00:00 committed by Michael Koch
parent 7b53becc10
commit 93f93f9f28
14 changed files with 2006 additions and 82 deletions

View file

@ -39,12 +39,49 @@ package java.nio.channels;
import java.nio.channels.spi.AbstractSelectableChannel;
import java.nio.channels.spi.SelectorProvider;
import java.nio.ByteOrder;
import java.nio.ByteBuffer;
import java.io.IOException;
import java.net.ServerSocket;
/**
* @author Michael Koch
* @since 1.4
*/
public abstract class ServerSocketChannel
extends AbstractSelectableChannel
{
/**
* Initializes this channel.
*/
public ServerSocketChannel (SelectorProvider provider)
{
super (provider);
}
/**
* Accepts a connection made to this channel's socket.
*/
public abstract SocketChannel accept ();
/**
* Retrieves the channels socket.
*/
public abstract ServerSocket socket ();
/**
* Opens a server socker channel.
*/
public static ServerSocketChannel open () throws IOException
{
return SelectorProvider.provider ().openServerSocketChannel ();
}
/**
* Retrieves the valid operations for this channel.
*/
public final int validOps ()
{
return SelectionKey.OP_ACCEPT;
}
}