diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-25 09:05:53 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-25 09:05:53 +0000 |
commit | 36e953e19158aa2f7e16ad8534450b58f07fea36 (patch) | |
tree | eba53548213d388013da79db4a20b091267a80e9 /libjava/java/net/JarURLConnection.java | |
parent | 24080de927326c069e34163bb16a7f3e0596dda2 (diff) | |
download | ppe42-gcc-36e953e19158aa2f7e16ad8534450b58f07fea36.tar.gz ppe42-gcc-36e953e19158aa2f7e16ad8534450b58f07fea36.zip |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57494 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/net/JarURLConnection.java')
-rw-r--r-- | libjava/java/net/JarURLConnection.java | 25 |
1 files changed, 21 insertions, 4 deletions
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 |