diff options
| author | Michael Koch <konqueror@gmx.de> | 2004-04-20 15:27:38 +0000 |
|---|---|---|
| committer | Michael Koch <mkoch@gcc.gnu.org> | 2004-04-20 15:27:38 +0000 |
| commit | 92e1fe674851eff331db253bcb79199716a341f6 (patch) | |
| tree | 9914edd6a6325b7030a0b0da34b29e407a5403e4 /libjava/java/nio/channels/Pipe.java | |
| parent | 08c5d75719821940cc39591681aaec3c7fdc63ce (diff) | |
Buffer.java, [...]: Fixed javadocs and jalopied all over java.nio.
2004-04-20 Michael Koch <konqueror@gmx.de>
* 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
Diffstat (limited to 'libjava/java/nio/channels/Pipe.java')
| -rw-r--r-- | libjava/java/nio/channels/Pipe.java | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/libjava/java/nio/channels/Pipe.java b/libjava/java/nio/channels/Pipe.java index 939d7b52ad2..baee1fa563d 100644 --- a/libjava/java/nio/channels/Pipe.java +++ b/libjava/java/nio/channels/Pipe.java @@ -1,4 +1,4 @@ -/* Pipe.java -- +/* Pipe.java -- Copyright (C) 2002 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -41,22 +41,22 @@ import java.io.IOException; import java.nio.channels.spi.AbstractSelectableChannel; import java.nio.channels.spi.SelectorProvider; + /** * @author Michael Koch * @since 1.4 */ public abstract class Pipe { - public abstract static class SinkChannel - extends AbstractSelectableChannel + public abstract static class SinkChannel extends AbstractSelectableChannel implements WritableByteChannel, GatheringByteChannel { /** * Initializes the channel. */ - protected SinkChannel (SelectorProvider provider) + protected SinkChannel(SelectorProvider provider) { - super (provider); + super(provider); } /** @@ -64,22 +64,21 @@ public abstract class Pipe * * The only valid operation on this channel is @see SelectionKey.OP_WRITE. */ - public final int validOps () + public final int validOps() { return SelectionKey.OP_WRITE; } } - public abstract static class SourceChannel - extends AbstractSelectableChannel + public abstract static class SourceChannel extends AbstractSelectableChannel implements ReadableByteChannel, ScatteringByteChannel { /** * Initializes the channel. */ - protected SourceChannel (SelectorProvider provider) + protected SourceChannel(SelectorProvider provider) { - super (provider); + super(provider); } /** @@ -87,7 +86,7 @@ public abstract class Pipe * * The only valid operation on this channel is @see SelectionKey.OP_READ. */ - public final int validOps () + public final int validOps() { return SelectionKey.OP_READ; } @@ -102,12 +101,12 @@ public abstract class Pipe /** * Opens a pipe. - * + * * @exception IOException If an error occurs */ public static Pipe open() throws IOException { - return SelectorProvider.provider ().openPipe(); + return SelectorProvider.provider().openPipe(); } /** @@ -118,5 +117,5 @@ public abstract class Pipe /** * Returns a pipe's source channel */ - public abstract Pipe.SourceChannel source(); + public abstract Pipe.SourceChannel source(); } |
