From 92e1fe674851eff331db253bcb79199716a341f6 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Tue, 20 Apr 2004 15:27:38 +0000 Subject: Buffer.java, [...]: Fixed javadocs and jalopied all over java.nio. 2004-04-20 Michael Koch * java/nio/Buffer.java, java/nio/channels/AlreadyConnectedException.java, java/nio/channels/AsynchronousCloseException.java, java/nio/channels/ByteChannel.java, java/nio/channels/CancelledKeyException.java, java/nio/channels/Channel.java, java/nio/channels/Channels.java, java/nio/channels/ClosedByInterruptException.java, java/nio/channels/ClosedChannelException.java, java/nio/channels/ClosedSelectorException.java, java/nio/channels/ConnectionPendingException.java, java/nio/channels/DatagramChannel.java, java/nio/channels/FileChannel.java, java/nio/channels/FileLock.java, java/nio/channels/FileLockInterruptionException.java, java/nio/channels/GatheringByteChannel.java, java/nio/channels/IllegalBlockingModeException.java, java/nio/channels/IllegalSelectorException.java, java/nio/channels/InterruptibleChannel.java, java/nio/channels/NoConnectionPendingException.java, java/nio/channels/NonReadableChannelException.java, java/nio/channels/NonWritableChannelException.java, java/nio/channels/NotYetBoundException.java, java/nio/channels/NotYetConnectedException.java, java/nio/channels/OverlappingFileLockException.java, java/nio/channels/Pipe.java, java/nio/channels/ReadableByteChannel.java, java/nio/channels/ScatteringByteChannel.java, java/nio/channels/SelectableChannel.java, java/nio/channels/SelectionKey.java, java/nio/channels/Selector.java, java/nio/channels/ServerSocketChannel.java, java/nio/channels/SocketChannel.java, java/nio/channels/UnresolvedAddressException.java, java/nio/channels/UnsupportedAddressTypeException.java, java/nio/channels/WritableByteChannel.java, java/nio/channels/spi/AbstractInterruptibleChannel.java, java/nio/channels/spi/AbstractSelectableChannel.java, java/nio/channels/spi/AbstractSelectionKey.java, java/nio/channels/spi/AbstractSelector.java, java/nio/channels/spi/SelectorProvider.java, java/nio/charset/spi/CharsetProvider.java: Fixed javadocs and jalopied all over java.nio. From-SVN: r80909 --- libjava/java/nio/channels/Selector.java | 57 +++++++++++++++++---------------- 1 file changed, 29 insertions(+), 28 deletions(-) (limited to 'libjava/java/nio/channels/Selector.java') diff --git a/libjava/java/nio/channels/Selector.java b/libjava/java/nio/channels/Selector.java index 695969b5b3a..0eee121e27d 100644 --- a/libjava/java/nio/channels/Selector.java +++ b/libjava/java/nio/channels/Selector.java @@ -1,4 +1,4 @@ -/* Selector.java -- +/* Selector.java -- Copyright (C) 2002 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -41,6 +41,7 @@ import java.io.IOException; import java.nio.channels.spi.SelectorProvider; import java.util.Set; + /** * @author Michael Koch * @since 1.4 @@ -53,81 +54,81 @@ public abstract class Selector protected Selector() { } - + /** * Opens a selector. - * + * * @exception IOException If an error occurs */ - public static Selector open () throws IOException + public static Selector open() throws IOException { - return SelectorProvider.provider ().openSelector (); + return SelectorProvider.provider().openSelector(); } /** * Closes the selector. - * + * * @exception IOException If an error occurs */ - public abstract void close () throws IOException; - + public abstract void close() throws IOException; + /** * Tells whether the selector is open or not. */ - public abstract boolean isOpen (); - + public abstract boolean isOpen(); + /** * Returns this selector's key set. - * + * * @exception ClosedSelectorException If this selector is closed. */ - public abstract Set keys (); - + public abstract Set keys(); + /** * Returns the SelectorProvider that created the selector. */ - public abstract SelectorProvider provider (); - + public abstract SelectorProvider provider(); + /** * Selects a set of keys whose corresponding channels are ready * for I/O operations. - * + * * @exception ClosedSelectorException If this selector is closed. * @exception IOException If an error occurs */ - public abstract int select () throws IOException; - + public abstract int select() throws IOException; + /** * Selects a set of keys whose corresponding channels are ready * for I/O operations. * * @param timeout The timeout to use. - * + * * @exception ClosedSelectorException If this selector is closed. * @exception IllegalArgumentException If the timeout value is negative. * @exception IOException If an error occurs */ - public abstract int select (long timeout) throws IOException; - + public abstract int select(long timeout) throws IOException; + /** * Returns this selector's selected-key set. - * + * * @exception ClosedSelectorException If this selector is closed. */ - public abstract Set selectedKeys (); - + public abstract Set selectedKeys(); + /** * Selects a set of keys whose corresponding channels are ready * for I/O operations. - * + * * @exception ClosedSelectorException If this selector is closed. * @exception IOException If an error occurs */ - public abstract int selectNow () throws IOException; - + public abstract int selectNow() throws IOException; + /** * Causes the first selection operation that has not yet returned to * return immediately. */ - public abstract Selector wakeup (); + public abstract Selector wakeup(); } -- cgit v1.2.3