Michael Koch
69c107efe4
2003-02-18 Michael Koch <konqueror@gmx.de>
...
* java/nio/channels/FileChannel.java
(toString): New implementation, added documentation.
(map): Added exception documentation.
(size): Added exception documentation.
(write): New methods, documentation work.
(read): New methods, documentation work.
(implCloseChannel): Rewrote exception documentation.
(force): Throws IOException, added documentation.
(lock): New methods.
(tryLock): New methods.
(position): New methods.
(transferTo): New method.
(transferFrom): New method.
(truncate): New method.
* java/nio/channels/spi/SelectorProvider.java
(provider): Implemented.
* Makefile.am
(ordinary_java_source_files): Added the following files:
gnu/java/nio/DatagramChannelImpl.java
gnu/java/nio/FileChannelImpl.java
gnu/java/nio/PipeImpl.java
gnu/java/nio/SelectionKeyImpl.java
gnu/java/nio/SelectorImpl.java
gnu/java/nio/SelectorProviderImpl.java
gnu/java/nio/ServerSocketChannelImpl.java
gnu/java/nio/SocketChannelImpl.java
java/nio/channels/FileLock.java
(nat_java_source_files): Added the following files:
gnu/java/nio/natFileChannelImpl.cc
gnu/java/nio/natSelectorImpl.cc
gnu/java/nio/natSocketChannelImpl.cc
* Makefile.in: Regenerated.
From-SVN: r63028
2003-02-18 07:26:20 +00:00
Michael Koch
0e0335e36a
Channels.java: New file.
...
2003-02-12 Michael Koch <konqueror@gmx.de>
* java/nio/channels/Channels.java: New file.
* Makefile.am
(ordinary_java_source_files): Added java/nio/channels/Channels.java.
* Makefile.in: Regenerated.
From-SVN: r62762
2003-02-12 10:10:28 +00:00
Michael Koch
c34ce2a637
2003-02-11 Michael Koch <konqueror@gmx.de>
...
* java/nio/channels/SelectionKey.java
(OP_ACCEPT, OP_CONNECT, OP_READ, OP_WRITE): Initialize with correct
values.
From-SVN: r62683
2003-02-11 06:50:13 +00:00
Michael Koch
d62f8f8dc7
2003-02-11 Michael Koch <konqueror@gmx.de>
...
* java/nio/channels/DatagramChannel.java
(write): Throws IOException.
(connect): Throws IOException.
(disconnect): Throws IOException.
(read): Throws IOException.
(receive): Throws IOException.
(send): Throws IOException.
* java/nio/channels/Pipe.java
(open): Throws IOException.
* java/nio/channels/SelectableChannel.java
(configureBlocking): Throws IOException.
* java/nio/channels/ServerSocketChannel.java
(accept): Throws IOException.
* java/nio/channels/SocketChannel.java
(SocketChannel): Implements ByteChannel, ScatteringByteChannel,
GatheringByteChannel.
(read): Throws IOException.
(write): Throws IOException.
(finishConnect): Throws IOException.
* java/nio/channels/spi/AbstractInterruptibleChannel.java
(end): Throws AsynchronousCloseException.
* java/nio/channels/spi/AbstractSelectableChannel.java
(configureBlocking): Throws IOException.
(implCloseChannel): Throws IOException.
(implCloseSelectableChannel): Throws IOException.
(implConfigureBlocking): Throws IOException.
* java/nio/channels/spi/SelectorProvider.java
(openDatagramChannel): Throws IOException.
(openPipe): Throws IOException.
(openSelector): Throws IOException.
(openServerSocketChannel): Throws IOException.
(openSocketChannel): Throws IOException.
From-SVN: r62682
2003-02-11 06:48:53 +00:00
Michael Koch
e3b6a47f66
FileLockImpl.java, [...]: New files.
...
2003-02-11 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/FileLockImpl.java,
java/nio/channels/FileLock.java: New files.
From-SVN: r62681
2003-02-11 06:47:50 +00:00
Michael Koch
a1cd285d75
2002-11-29 Michael Koch <konqueror@gmx.de>
...
* java/nio/channels/DatagramChannel.java
(open): Added exception documentation.
(write): Added exception documentation.
(connect): Added exception documentation.
(disconnect): Added exception documentation.
(isConnected): Added exception documentation.
(read): Added exception documentation.
(receive): Added exception documentation.
(send): Added exception documentation.
(validOps): Added exception documentation.
* java/nio/channels/SocketChannel.java
(open): Added exception documentation.
(read): Added exception documentation.
(write): Added exception documentation.
(connect): Added exception documentation.
(finishConnect): Added exception documentation.
From-SVN: r59633
2002-11-29 12:32:17 +00:00
Michael Koch
6315b6cbff
AsynchronousCloseException.java, [...]: New files.
...
2002-11-21 Michael Koch <konqueror@gmx.de>
* java/nio/channels/AsynchronousCloseException.java,
java/nio/channels/CancelledKeyException.java,
java/nio/channels/ClosedByInterruptException.java,
java/nio/channels/ConnectionPendingException.java,
java/nio/channels/FileLockInterruptionException.java,
java/nio/channels/IllegalSelectorException.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/UnresolvedAddressException.java,
java/nio/channels/UnsupportedAddressTypeException.java:
New files.
* Makefile.am (ordinary_java_source_files): Added new files.
* Makefile.in: Regenerated.
From-SVN: r59341
2002-11-21 10:45:14 +00:00
Michael Koch
3ebb998e6f
2002-11-20 Michael Koch <konqueror@gmx.de>
...
* java/io/FileInputStream.java
(getChannel): New method.
* java/io/FileOutputStream.java
(getChannel): New method.
* java/net/ServerSocket.java
(bind): Removed duplicate code and called another bind method instead.
* java/nio/channels/SelectionKey.java
(isValid): Removed wrong exception documentation.
* java/nio/channels/ServerSocketChannel.java
(accept): Added exception documentation.
(open): Fixed typo, added exception documentation.
* java/nio/channels/spi/AbstractSelectableChannel.java
(implCloseChannel): Added exception documentation.
(add): Reformated.
(register): Added exception documentation.
From-SVN: r59307
2002-11-20 16:19:08 +00:00
Michael Koch
ecfef45b9a
2002-11-18 Michael Koch <konqueror@gmx.de>
...
* java/nio/channels/SelectionKey.java
(isValid): Added exception documentation.
* java/nio/channels/Selector.java
(open): Declare "throws IOException".
From-SVN: r59219
2002-11-18 14:31:39 +00:00
Michael Koch
48f5b6723a
ByteBufferImpl.java, [...]: New files.
...
2002-11-18 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/ByteBufferImpl.java,
gnu/java/nio/CharBufferImpl.java,
gnu/java/nio/DatagramChannelImpl.java,
gnu/java/nio/DoubleBufferImpl.java,
gnu/java/nio/FileChannelImpl.java,
gnu/java/nio/FloatBufferImpl.java,
gnu/java/nio/IntBufferImpl.java,
gnu/java/nio/LongBufferImpl.java,
gnu/java/nio/PipeImpl.java,
gnu/java/nio/SelectionKeyImpl.java,
gnu/java/nio/SelectorImpl.java,
gnu/java/nio/SelectorProviderImpl.java,
gnu/java/nio/ServerSocketChannelImpl.java,
gnu/java/nio/ShortBufferImpl.java,
gnu/java/nio/SocketChannelImpl.java,
java/nio/DoubleBuffer.java,
java/nio/FloatBuffer.java,
java/nio/IntBuffer.java,
java/nio/LongBuffer.java,
java/nio/ShortBuffer.java,
java/nio/channels/FileChannel.java: New files.
From-SVN: r59216
2002-11-18 13:56:59 +00:00
Michael Koch
6602dd4a3b
PlainSocketImpl.java: Reworked imports.
...
2002-11-18 Michael Koch <konqueror@gmx.de>
* java/net/PlainSocketImpl.java: Reworked imports.
* java/net/ServerSocket.java
(ServerSocket): Create socket.
* java/net/SocketAddress.java: Documentation added.
* java/net/natPlainSocketImpl.cc: Reindented.
* java/nio/ReadOnlyBufferException.java: New file
* java/nio/channels/ClosedChannelException.java: Documentation added.
* java/nio/channels/ClosedSelectorException.java: New file.
From-SVN: r59214
2002-11-18 13:22:55 +00:00
Michael Koch
70c73a4d1d
AlreadyConnectedException.java: Removed unneeded import.
...
2002-11-13 Michael Koch <konqueror@gmx.de>
* java/nio/channels/AlreadyConnectedException.java:
Removed unneeded import.
(AlreadyConnectedException): Documentation added.
* java/nio/channels/Pipe.java
(SinkChannel.SinkChannel): Documentation added.
(SinkChannel.validOps): New method.
(SourceChannel.SourceChannel): Documentation added.
(SourceChannel.validOps): New method.
(Pipe): Documentation added.
(open): Documentation added.
(SinkChannel.channel): Documentation added.
(SourceChannel.channel): Documentation added.
* java/nio/channel/SelectableChannel.java
(SelectableChannel): Documentation added.
(blockingLock): Documentation added.
(configureBlocking):Documentation added.
(isBlocking):Documentation added.
(isRegistered):Documentation added.
(keyFor):Documentation added.
(provider):Documentation added.
(register): Documentation added.
(validOps): Documentation added.
* jaba/nio/channels/SelectionKey.java
(SelectionKey): Documentation added.
(attach): Documentation added.
(attachment): Documentation added.
(isAcceptable): Documentation added.
(isConnetable): Documentation added.
(isReadable): Documentation added.
(isWritable): Documentation added.
(cancel): Documentation added.
(channel): Documentation added.
(interestOps): Documentation added.
(isValid): Documentation added.
(readyOps): Documentation added.
(selector): Documentation added.
* jaba/nio/channels/Selector.java
(Selector): Documentation added.
(open): Documentation added.
(close): Documentation added.
(isOpen): Documentation added.
(keys): Documentation added.
(provider): Documentation added.
(select): Documentation added.
(selectedKeys): Documentation added.
(selectNow): Documentation added.
(wakeup): Documentation added.
* java/nio/channels/spi/AbstractInterruptibleChannel.java
(AbstractInterruptibleChannel): Documentation added.
(opened): Default to true;
(begin): Documentation added.
(close): Set opened to false, documentation added.
(isOpen): Documentation added.
* java/nio/channels/spi/AbstractSelectionKey.java
(AbstractSelectionKey): Documentation added.
(cancel): Documentation added.
(isValid): Documentation added.
* java/nio/channels/spi/AbstractSelector.java
(AbstractSelector): Documentation added.
(begin): Documentation added.
(close): Documentation added.
(isOpen): Documentation added.
(deregister): Documentation added.
(end): Documentation added.
(provider): Documentation added.
(implCloseSelector): Documentation added.
(register): Documentation added.
* java/nio/channels/spi/SelectorProvider.java
(SelectorProvider): Documentation added.
(openDatagramChannel): Documentation added.
(openPipe): Documentation added.
(openSelector): Documentation added.
(openServerSocketChannel): Documentation added.
(openSocketChannel): Documentation added.
(provider): Documentation added.
From-SVN: r59077
2002-11-13 13:52:47 +00:00
Michael Koch
93f93f9f28
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
2002-11-13 12:21:26 +00:00
Tom Tromey
7189ea2902
AlreadyConnectedException.java: Extend IllegalStateException, per spec.
...
* java/nio/channels/AlreadyConnectedException.java: Extend
IllegalStateException, per spec.
From-SVN: r58773
2002-11-03 21:18:32 +00:00
Michael Koch
9dcb1ec813
ByteOrder.java: New file.
...
2002-11-01 Michael Koch <konqueror@gmx.de>
* java/nio/ByteOrder.java: New file.
* java/nio/channels/DatagramChannel.java:
(DatagramChannel): New constructor.
* java/nio/channels/Pipe.java: New file.
* java/nio/channels/SelectableChannel.java: New file.
* java/nio/channels/SelectionKey.java: New file.
* java/nio/channels/Selector.java: New file.
* java/nio/channels/ServerSocketChannel.java
(ServerSocketChannel): New constructor.
* java/nio/channels/SocketChannel.java
(SocketChannel): New constructor.
* java/nio/channels/Pipe.java: New file.
* java/nio/channels/spi/AbstractChannel.java: New file.
* java/nio/channels/spi/AbstractInterruptibleChannel.java: New file.
* java/nio/channels/spi/AbstractSelectableChannel.java:
License added
(AbstractSelectableChannel): New stubbed method.
* java/nio/channels/spi/AbstractSelectionKey.java: New file.
* java/nio/channels/spi/AbstractSelector.java: New file.
* java/nio/channels/spi/SelectorProvider.java: New file.
* java/nio/charset/Charset.java: New file.
* java/nio/charset/CoderMalfunctionError.java: New file.
* java/nio/charset/CodingErrorAction.java: New file.
* java/nio/charset/spi/CharsetProvider.java
(charsetForName): Uncommented.
* Makefile.am (java_native_source_files): Added new files.
* Makefile.in: Regenerated.
From-SVN: r58713
2002-11-01 12:03:40 +00:00
Michael Koch
0b6dfe3b83
AlreadyConnectedException.java, [...]: New file.
...
2002-10-07 Michael Koch <konqueror@gmx.de>
* java/nio/channels/AlreadyConnectedException.java,
java/nio/channels/ClosedChannelException.java,
java/nio/channels/ReadableByteChannel.java,
java/nio/channels/InterruptibleChannel.java,
java/nio/channels/Channel.java,
java/nio/channels/ByteChannel.java,
java/nio/channels/GatheringByteChannel.java,
java/nio/channels/ScatteringByteChannel.java,
java/nio/channels/WritableByteChannel.java,
java/nio/charset/CharacterCodingException.java,
java/nio/charset/IllegalCharsetNameException.java,
java/nio/charset/MalformedInputException.java,
java/nio/charset/UnmappableCharacterException.java,
java/nio/charset/UnsupportedCharsetException.java,
java/nio/charset/spi/CharsetProvider.java: New file.
These files are exceptions or interfaces,
no real or abstract classes.
* Makefile.am (java_native_source_files): Added new files.
* Makefile.in: Regenerated.
From-SVN: r57885
2002-10-07 07:59:12 +00:00
Michael Koch
1754e35c31
AbstractSelectableChannel.java: New file.
...
2002-09-25 Michael Koch <konqueror@gmx.de>
* java/nio/channels/spi/AbstractSelectableChannel.java: New file.
* java/nio/channels/DatagramChannel.java:
extends AbstractSelectableChannel
* java/nio/channels/ServerSocketChannel.java:
extends AbstractSelectableChannel
* java/nio/channels/SocketChannel.java:
extends AbstractSelectableChannel
* Makefile.am (ordinary_java_source_files):
java/nio/channels/spi/AbstractSelectableChannel.java added.
* Makefile.in: Regenerated.
This commit fixes the CVS build problems, Sorry for the trouble.
From-SVN: r57497
2002-09-25 13:04:58 +00:00
Michael Koch
df79dc1a89
2002-09-25 Michael Koch <konqueror@gmx.de>
...
* java/net/DatagramSocket.java
(DatagramSocket): Exception documentation added.
(bind): Exception documentation added, addded SecurityManager check,
added SocketAddress type check.
(getSoTimeout): Check impl.
(receive): Fix SecurityManager check, check impl, documentation added.
(send): Check channel mode, documentation added.
(connect): New method.
(disconnect): Implemented.
(getLocalSocketAddress): New method.
(getReceiveBufferSize): Check impl.
(setReuseAddress): Check impl.
(getReuseAddress): Check impl.
(setBroadcast): Check impl.
(getBroadcast): Check impl.
(setTrafficClass): Check impl, Documentation cleared.
(getTrafficClass): Check impl.
(getSendBufferSize): Check impl.
(setReceiveBufferSize): Check impl, documentation added.
(setSendBufferSize): Documentation added.
(setDatagramSocketImplFactory): New method.
* java/net/HttpURLConnection.java
(HTTP_INTERNAL_ERROR): The correct code is 500.
(HTTP_NOT_IMPLEMENTED): Added new constant.
(setFollowRedirects): Documentation added.
(getInstanceFollowRedirects): New method.
(setInstanceFollowRedirects): New method.
(setRequestMethod): Documentation added.
(getResponseCode): Documentation added.
(getResponseMessage): Documentation added.
* java/net/JarURLConnection.java
(JarURLConnection): protected since JDK 1.4.
(getJarEntry): java.io.IOException to IOException, documentation added.
(getJarFile): Documentation added.
* java/net/ServerSocket.java
(ServerSocket): Private to public, exception added.
(ServerSocket): java.io.IOException to IOException, documentation added.
(bind): Check socket address type, documentation added.
(bind): java.io.IOException to IOException, documentation added.
(accept): Documentation added.
(implAccept): Check ch is not non-blocking, documentation added.
(setSoTimeout): Documentation fixed.
(setReceiveBufferSize): Documentation added.
* java/net/Socket.java
(Socket): Documentation added.
(bind): Documentation added.
(connect): Check socket address type, documentation added.
(getRemoteSocketAddress): New method.
From-SVN: r57494
2002-09-25 09:05:53 +00:00
Michael Koch
8764acde96
DatagramChannel.java, [...]: New dummy files to make java.net fully JDK 1.4 compatible
...
2002-09-13 Michael Koch <konqueror@gmx.de>
* java/nio/channels/DatagramChannel.java,
java/nio/channels/ServerSocketChannel.java
java/nio/channels/SocketChannel.java:
New dummy files to make java.net fully JDK 1.4 compatible
* Makefile.am (ordinary_java_source_files): Added
java/net/DatagramSocketImplFactory.java (long forgotten),
java/nio/SocketChannel.java,
java/nio/ServerSocketChannel.java,
java/nio/DatagramChannel.java
* Makefile.in: Regenrated.
From-SVN: r57101
2002-09-13 09:02:23 +00:00