From df79dc1a89017f6b70525fcafc94c1ec476fead0 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Wed, 25 Sep 2002 09:05:53 +0000 Subject: 2002-09-25 Michael Koch * 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 --- libjava/java/net/JarURLConnection.java | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'libjava/java/net/JarURLConnection.java') diff --git a/libjava/java/net/JarURLConnection.java b/libjava/java/net/JarURLConnection.java index c5597d636df..8f75622975f 100644 --- a/libjava/java/net/JarURLConnection.java +++ b/libjava/java/net/JarURLConnection.java @@ -50,7 +50,14 @@ public abstract class JarURLConnection extends URLConnection return element; } - public JarURLConnection(URL url) + /** + * Creates a new JarURLConnection + * + * @exception MalformedURLException If url is invalid + * + * @specnote This constructor is protected since JDK 1.4 + */ + protected JarURLConnection(URL url) throws MalformedURLException { super(url); @@ -153,7 +160,12 @@ public abstract class JarURLConnection extends URLConnection return null; } - public JarEntry getJarEntry () throws java.io.IOException + /** + * Return the JAR entry object for this connection, if any + * + * @exception IOException If an error occurs + */ + public JarEntry getJarEntry () throws IOException { JarFile jarfile = null; @@ -167,7 +179,7 @@ public abstract class JarURLConnection extends URLConnection { jarfile = getJarFile (); } - catch (java.io.IOException x) + catch (IOException x) { /* ignore */ } @@ -197,7 +209,12 @@ public abstract class JarURLConnection extends URLConnection return null; } - public abstract JarFile getJarFile() throws java.io.IOException; + /** + * Return the JAR file for this connection + * + * @exception IOException If an error occurs + */ + public abstract JarFile getJarFile() throws IOException; // Steal and borrow from protocol/file/Connection.java -- cgit v1.2.3