From ed08cfe4cd05b81e9dbdf33866c8e292a424fb67 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Wed, 25 Sep 2002 05:05:07 +0000 Subject: 2002-09-25 Michael Koch * java/net/DatagramPacket (DatagramPacket): Exception documentation added. (setData): Likewise. (setSocketAddress): Likewise. * java/net/DatagramSocketImpl.java (peek): Documentation addded. (peekData): Documentation addded. (send): Documentation addded. (receive): Documentation addded. (connect): New method. (disconnect): New method. (joinGroup): New abstract method. (leaveGroup): New abstract method. * java/net/InetSocketAddress.java (InetSocketAddress): Documentation added. (equals): final keyword added. (getAddress): final keyword added. (getHostName): final keyword added. (getPort): final keyword added. (hashCode): final keyword added. (isUnresolved): final keyword added. * java/net/MulticastSocket.java (MulticastSocket): Documentation added. (MulticastSocket): New method. (joinGroup): Documentation added. (joinGroup): New method. (leaveGroup): Documentation added. (leaveGroup): New method. (send): Documentation added. * java/net/NetworkInterface.java (getByName): Documentation added. (getByInetAddress): Documentation added. (getNetworkInterfaces): Documentation added. * java/net/PlainDatagramSocketImpl.java (connect): New method. (disconnect): New method. * java/net/SocketImpl.java (create): Documentation added. (shutdownInput): Convert public to protected, as it always was. (shutdownOutput): Convert public to protected, as it always was. * java/net/SocketOptions.java (whole file): Reintented. * java/net/URLClassLoader.java (URLClassLoader): SecurityManager check added, documentation added. (findResources): Documentation added. (findClass): Documentation added. (newInstance): More correct method arguments. * java/net/URLConnection.java (connect): Documentation added. (getContent): Documentation added. (getPermission): Documentation added. (getInputStream): Documentation added. (getOutputStream): Documentation added. (setDoInput): Throw correct exception, documentation added. (setDoOutput): Throw correct exception, documentation added. (setAllowUserInteraction): Throw correct exception, documentation added. (setUseCaches): Throw correct exception, documentation added. (setIfModifiedSince): Throw correct exception, documentation added. (setRequestProperty): Throw exception, documentation added. (addRequestProperty): Throw exception, documentation added. (getRequestProperty): Throw exception, documentation added. (getRequestProperties): Documentation added. (setContentHandlerFactory): Documentation added. (guessContentTypeFromName): protected to public. (setFileNameMap): Documentation added. * java/net/URLDecoder.java (URLDecoder): New method. (decode): Documentation added. (whole file): Reindented. * java/net/URLEncoder.java (encode): Documentation added. * java/net/natPlainDatagramSocketImpl.cc (connect): New method. (disconnect): New method. * javax/naming/RefAddr: (addrType): addrType was never final. (equals): Fix typo in method name. * javax/naming/BinaryRefAddr: (equals): Fix typo in method name. From-SVN: r57487 --- libjava/java/net/DatagramPacket.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'libjava/java/net/DatagramPacket.java') diff --git a/libjava/java/net/DatagramPacket.java b/libjava/java/net/DatagramPacket.java index 836f5dd66b8..7fbb3f8da35 100644 --- a/libjava/java/net/DatagramPacket.java +++ b/libjava/java/net/DatagramPacket.java @@ -195,6 +195,7 @@ public final class DatagramPacket * @param address The socket address to send to * * @exception SocketException If an error occurs + * @exception IllegalArgumentException If address type is not supported * * @since 1.4 */ @@ -215,6 +216,7 @@ public final class DatagramPacket * @param address The socket address to send to * * @exception SocketException If an error occurs + * @exception IllegalArgumentException If address type is not supported * * @since 1.4 */ @@ -321,7 +323,7 @@ public final class DatagramPacket * * @param address The socket address of the remove host * - * @exception IllegalArgumentException If an error occurs + * @exception IllegalArgumentException If address type is not supported * * @since 1.4 */ @@ -353,6 +355,8 @@ public final class DatagramPacket * * @param buf The new buffer for this packet * + * @exception NullPointerException If the argument is null + * * @since 1.1 */ public synchronized void setData(byte[] buf) @@ -372,6 +376,8 @@ public final class DatagramPacket * @param offset The offset into the buffer to start reading data from. * @param length The number of bytes of data in the buffer. * + * @exception NullPointerException If the argument is null + * * @since 1.2 */ public synchronized void setData(byte[] buf, int offset, int length) @@ -398,6 +404,9 @@ public final class DatagramPacket * * @param length The new length. (Where len <= buf.length) * + * @exception IllegalArgumentException f the length is negative or + * if the length is greater than the packet's data buffer length + * * @since 1.1 */ public synchronized void setLength(int length) -- cgit v1.2.3