aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/nio
AgeCommit message (Collapse)AuthorFilesLines
2003-03-172003-03-17 Michael Koch <konqueror@gmx.de>Michael Koch1-1/+1
* java/net/DatagramSocket.java (connect): Fixed comment. * java/nio/ByteBuffer.java (hasArray): Fixed comment. From-SVN: r64487
2003-03-112003-03-11 Michael Koch <konqueror@gmx.de>Michael Koch2-2/+12
* gnu/java/nio/ByteBufferImpl.java (putInt): Use limit() instead of limit. * gnu/java/nio/CharBufferImpl.java (slice): Fixed implementation. (subSequence): Better bounds checking. * gnu/java/nio/MappedByteFileBuffer.java: Import all needed classes directly. * java/nio/ByteBuffer.java (hashCode): New dummy method. * java/nio/CharBuffer.java (array_offset): New member variable. (hasArray): Fixed documentation. (arrayOffset): Return array_offset. From-SVN: r64165
2003-03-102003-03-10 Michael Koch <konqueror@gmx.de>Michael Koch1-3/+14
* java/nio/ByteOrder.java (nativeOrder): Working implementation, added documentation. (toString): Added documentation. From-SVN: r64085
2003-02-192003-02-19 Michael Koch <konqueror@gmx.de>Michael Koch6-7/+19
* gnu/java/nio/ByteBufferImpl.java (ByteBufferImpl): Renamed two variables. * gnu/java/nio/CharBufferImpl.java (CharBufferImpl): Renamed two variables. * gnu/java/nio/DoubleBufferImpl.java (DoubleBufferImpl): Renamed two variables. * gnu/java/nio/FloatBufferImpl.java (FloatBufferImpl): Renamed two variables. * gnu/java/nio/IntBufferImpl.java (IntBufferImpl): Renamed two variables. * gnu/java/nio/LongBufferImpl.java (LongBufferImpl): Renamed two variables. * gnu/java/nio/ShortBufferImpl.java (ShortBufferImpl): Renamed two variables. * java/nio/CharBuffer.java (wrap): Fixed arguments to CharBufferImpl constructor. (hasArray): Only not read-only buffers have backing arrays. (length): Documentation added. (subSequence): Documentation added. * java/nio/DoubleBuffer.java (hasArray): Only not read-only buffers have backing arrays. * java/nio/FloatBuffer.java (hasArray): Only not read-only buffers have backing arrays. * java/nio/IntBuffer.java (hasArray): Only not read-only buffers have backing arrays. * java/nio/LongBuffer.java (hasArray): Only not read-only buffers have backing arrays. * java/nio/ShortBuffer.java (hasArray): Only not read-only buffers have backing arrays. From-SVN: r63101
2003-02-182003-02-18 Michael Koch <konqueror@gmx.de>Michael Koch2-8/+243
* 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-152003-02-15 Jesse Rosenstock <jmr@ugcs.caltech.edu>Jesse Rosenstock2-2/+8
* java/nio/charset/Charset.java (isRegistered): Fixed method args and implementation. * java/nio/charset/CharsetEncoder.java (unmappableCharacterAction): New method. From-SVN: r62934
2003-02-132003-02-13 Michael Koch <konqueror@gmx.de>Michael Koch2-6/+401
* java/nio/ByteBuffer.java (endian): New member variable. (get): New methods. (equals): New method. (compareTo): New method. (order): New methods. (compact): New method. (isDirect): New method. (slice): New method. (duplicate): New method. (asReadOnlyBuffer): New method. (asCharBuffer): New method. (asDoubleBuffer): New method. (asFloatBuffer): New method. (asIntBuffer): New method. (asLongBuffer): New method. (asShortBuffer): New method. (get*): New methods. (put*): New methods. (toString): New method. * java/nio/CharBuffer.java (CharBuffer): Implement Comparable instead of Cloneable. (get): May not be final. (put): May not be final. From-SVN: r62836
2003-02-13natByteBufferImpl.cc, [...]: Added copyright and license.Michael Koch5-0/+60
2003-02-13 Michael Koch <konqueror@gmx.de> * gnu/java/nio/natByteBufferImpl.cc, gnu/java/nio/natCharBufferImpl.cc, gnu/java/nio/natDoubleBufferImpl.cc, gnu/java/nio/natFloatBufferImpl.cc, gnu/java/nio/natIntBufferImpl.cc, gnu/java/nio/natLongBufferImpl.cc, gnu/java/nio/natShortBufferImpl.cc: Added copyright and license. * java/nio/DoubleBuffer.java, java/nio/FloatBuffer.java, java/nio/IntBuffer.java, java/nio/LongBuffer.java, java/nio/ShortBuffer.java (array): Throw exceptions. (arrayOffset): Throw exceptions. From-SVN: r62832
2003-02-12Channels.java: New file.Michael Koch1-0/+130
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-122003-02-12 Michael Koch <konqueror@gmx.de>Michael Koch2-51/+174
* java/nio/ByteBuffer.java (allocate): Implemented. (wrap): Implemented. * java/nio/CharBuffer.java: Some documentation added and reworked. (endian): Removed. (allocate): Implemented. (wrap): Implemented. (array): Throw exceptions. (arrayOffset): Throw exceptions. (toString): Implemented. (length): Implemented. (put): Implemented. (charAt): Implemented. From-SVN: r62760
2003-02-112003-02-11 Michael Koch <konqueror@gmx.de>Michael Koch2-4/+4
* 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
2003-02-112003-02-11 Michael Koch <konqueror@gmx.de>Michael Koch9-17/+202
* java/nio/Buffer.java (cap, lim, pos, mark): Made private (Buffer): Added package private constructor. * java/nio/ByteBuffer.java (ByteBuffer): Implements Cloneable. (offset): New member variable. (readOnly): New member variable. (backing_buffer): New member variable. (allocateDirect): Throw exception and tell that direct buffers are not supported yet, documentation added. (allocate): Documentation added. (wrap): Documentation added. (ByteBuffer): New constructor. (hasArray): New method. (array): New method. (arrayOffset): New method. (get): Documentation added. (put): Documentation added. * java/nio/CharBuffer.java (CharBuffer): New constructor. (compareTo): Don't access member variables of Buffer directly. * java/nio/DoubleBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/FloatBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/IntBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/LongBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/MappedByteBuffer.java (MappedByteBuffer): New method. (force): New method. (isLoaded): New method. (load): New method. * java/nio/ShortBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. From-SVN: r62685
2003-02-112003-02-11 Michael Koch <konqueror@gmx.de>Michael Koch5-240/+70
* java/nio/DoubleBuffer.java (DoubleBuffer): Implements Comparable. (endian): Removed. (array_offset): New member variable. (DoubleBuffer): New constuctor. (get): May not be final. (put): May not be final. (arrayOffset): Implemented. (order): Made abstract. (order): Removed. (as*Buffer): Removed. (get*): Removed. (put*): Removed. * java/nio/FloatBuffer.java (FloatBuffer): Implements Comparable. (endian): Removed. (array_offset): New member variable. (FloatBuffer): New constuctor. (get): May not be final. (put): May not be final. (arrayOffset): Implemented. (order): Made abstract. (order): Removed. (as*Buffer): Removed. (get*): Removed. (put*): Removed. * java/nio/IntBuffer.java (IntBuffer): Implements Comparable. (endian): Removed. (array_offset): New member variable. (IntBuffer): New constuctor. (get): May not be final. (put): May not be final. (arrayOffset): Implemented. (order): Made abstract. (order): Removed. (as*Buffer): Removed. (get*): Removed. (put*): Removed. * java/nio/LongBuffer.java (LongBuffer): Implements Comparable. (endian): Removed. (array_offset): New member variable. (LongBuffer): New constuctor. (get): May not be final. (put): May not be final. (arrayOffset): Implemented. (order): Made abstract. (order): Removed. (as*Buffer): Removed. (get*): Removed. (put*): Removed. * java/nio/ShortBuffer.java (ShortBuffer): Implements Comparable. (endian): Removed. (array_offset): New member variable. (ShortBuffer): New constuctor. (get): May not be final. (put): May not be final. (arrayOffset): Implemented. (order): Made abstract. (order): Removed. (as*Buffer): Removed. (get*): Removed. (put*): Removed. From-SVN: r62684
2003-02-112003-02-11 Michael Koch <konqueror@gmx.de>Michael Koch1-4/+4
* java/nio/channels/SelectionKey.java (OP_ACCEPT, OP_CONNECT, OP_READ, OP_WRITE): Initialize with correct values. From-SVN: r62683
2003-02-112003-02-11 Michael Koch <konqueror@gmx.de>Michael Koch8-27/+43
* 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-11FileLockImpl.java, [...]: New files.Michael Koch1-0/+137
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-112003-02-08 Michael Koch <konqueror@gmx.de>Michael Koch2-4/+22
* java/nio/charset/IllegalCharsetNameException.java (serialVersionUID): New member variable. (charsetName): New member variable. (IllegalCharsetException): New implementation. (getCharsetName): New implementation. * java/nio/charset/UnsupportedCharsetException.java (serialVersionUID): New member variable. (charsetName): New member variable. (UnsupportedCharsetException): New implementation. (getCharsetName): New implementation. From-SVN: r62680
2002-11-292002-11-29 Michael Koch <konqueror@gmx.de>Michael Koch2-0/+109
* 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-21AsynchronousCloseException.java, [...]: New files.Michael Koch14-0/+730
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-202002-11-20 Michael Koch <konqueror@gmx.de>Michael Koch3-11/+28
* 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-18CoderResult.java (Cache.get): Fix a bug that was causing CoderResults to be ↵Jesse Rosenstock1-1/+1
cached... 2002-11-18 Jesse Rosenstock <jmr@ugcs.caltech.edu> * java/nio/charset/CoderResult.java (Cache.get): Fix a bug that was causing CoderResults to be cached, not WeakReferences to CoderResults. From-SVN: r59233
2002-11-182002-11-18 Michael Koch <konqueror@gmx.de>Michael Koch2-1/+3
* java/nio/channels/SelectionKey.java (isValid): Added exception documentation. * java/nio/channels/Selector.java (open): Declare "throws IOException". From-SVN: r59219
2002-11-182002-11-17 Jesse Rosenstock <jmr@ugcs.caltech.edu>Jesse Rosenstock1-9/+43
* java/nio/charset/Charset.java (<clinit>): New method. (encode): Synchronize use of cached encoder object. (decode): Synchronize use of cached encoder object. From-SVN: r59218
2002-11-18ByteBufferImpl.java, [...]: New files.Michael Koch6-0/+1261
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-18PlainSocketImpl.java: Reworked imports.Michael Koch3-0/+108
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-132002-11-13 Michael Koch <konqueror@gmx.de>Michael Koch1-0/+37
* java/nio/ByteBuffer.java (allocate): New method. (wrap): New method. (put): New method. (get): New method. From-SVN: r59082
2002-11-13AlreadyConnectedException.java: Removed unneeded import.Michael Koch9-134/+367
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-13Buffer.java: Implemented.Michael Koch11-73/+1944
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-11CharacterCodingException.java: This class must be public.Michael Koch7-27/+46
2002-11-11 Michael Koch <konqueror@gmx.de> * java/nio/charset/CharacterCodingException.java: This class must be public. * java/nio/charset/CoderMalfunctionError.java: This class must be public. * java/nio/charset/CodingErrorAction.java: This class must be public. * java/nio/charset/IllegalCharsetNameException.java: This class must be public, better implementation. * java/nio/charset/MalformedInputException.java: This class must be public, better implementation. * java/nio/charset/UnmappableCharacterException.java: This class must be public, better implementation. * java/nio/charset/UnsupportedCharsetException.java: This class must be public, better implementation. From-SVN: r59012
2002-11-11BufferOverflowException.java, [...]: New file.Michael Koch2-0/+102
2002-11-11 Michael Koch <konqueror@gmx.de> * java/nio/BufferOverflowException.java, java/nio/BufferUnderflowException.java: New file. * Makefile.am (ordinary_java_source_files): Added new files. * Makefile.in: Regenerated. From-SVN: r59011
2002-11-03AlreadyConnectedException.java: Extend IllegalStateException, per spec.Tom Tromey1-5/+3
* java/nio/channels/AlreadyConnectedException.java: Extend IllegalStateException, per spec. From-SVN: r58773
2002-11-01ByteOrder.java: New file.Michael Koch18-7/+1096
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-10-07Buffer.java: New stub file.Michael Koch2-2/+44
2002-10-07 Michael Koch <konqueror@gmx.de> * java/nio/Buffer.java: New stub file. * java/nio/charset/spi/CharsetProvider.java: Commented out all usages of class Charset. * Makefile.am (java_native_source_files): Added java/nio/Buffer.java. * Makefile.in: Regenerated. From-SVN: r57901
2002-10-07ByteBuffer.java: removed import of not commited class.Michael Koch1-2/+0
2002-10-07 Michael Koch <konqueror@gmx.de> * java/nio/ByteBuffer.java: removed import of not commited class. From-SVN: r57900
2002-10-07ByteBuffer.java, [...]: New files, forgot to add these dummies.Michael Koch2-0/+86
2002-10-07 Michael Koch <konqueror@gmx.de> * java/nio/ByteBuffer.java, java/nio/MappedByteBuffer.java: New files, forgot to add these dummies. * Makefile.am (java_native_source_files): Added new files. * Makefile.in: Regenerated. From-SVN: r57899
2002-10-07AlreadyConnectedException.java, [...]: New file.Michael Koch15-0/+921
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-09-25AbstractSelectableChannel.java: New file.Michael Koch4-0/+19
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-252002-09-25 Michael Koch <konqueror@gmx.de>Michael Koch1-0/+56
* 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-13DatagramChannel.java, [...]: New dummy files to make java.net fully JDK 1.4 ↵Michael Koch3-0/+128
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