diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-09 07:11:11 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-09 07:11:11 +0000 |
commit | 23963e00b9d27b5e75fafa84c794b45fafd72638 (patch) | |
tree | 3e6ff9b46a559cc65ae52d3233b9fcc3797ab47d | |
parent | 5b0f2b28f29892435a73aafa44c37a5b9afe11cf (diff) | |
download | ppe42-gcc-23963e00b9d27b5e75fafa84c794b45fafd72638.tar.gz ppe42-gcc-23963e00b9d27b5e75fafa84c794b45fafd72638.zip |
2003-05-09 Michael Koch <konqueror@gmx.de>
* java/net/JarURLConnection.java
(getJarEntry): Merged documentation from classpath.
(getJarFile): Likewise.
(getMainAttributes): Likewise.
(getAttributes): Likewise.
(getManifest): Likewise.
(getCertificates): Reformatted.
* java/net/URLConnection.java:
Little classpath merge.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66625 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libjava/ChangeLog | 12 | ||||
-rw-r--r-- | libjava/java/net/JarURLConnection.java | 25 | ||||
-rw-r--r-- | libjava/java/net/URLConnection.java | 3 |
3 files changed, 31 insertions, 9 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 9f47624e39b..52c0ce139fb 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,17 @@ 2003-05-09 Michael Koch <konqueror@gmx.de> + * java/net/JarURLConnection.java + (getJarEntry): Merged documentation from classpath. + (getJarFile): Likewise. + (getMainAttributes): Likewise. + (getAttributes): Likewise. + (getManifest): Likewise. + (getCertificates): Reformatted. + * java/net/URLConnection.java: + Little classpath merge. + +2003-05-09 Michael Koch <konqueror@gmx.de> + * java/io/DataOutputStream.java (writeShort): Made it synchronized. (writeChar): Likewise. diff --git a/libjava/java/net/JarURLConnection.java b/libjava/java/net/JarURLConnection.java index a1f1d0db659..b8e9de07c52 100644 --- a/libjava/java/net/JarURLConnection.java +++ b/libjava/java/net/JarURLConnection.java @@ -234,8 +234,8 @@ public abstract class JarURLConnection extends URLConnection } /** - * Return the JAR entry object for this connection, if any - * + * Returns the entry in this jar file specified by the URL. + * * @return The jar entry * * @exception IOException If an error occurs @@ -285,7 +285,7 @@ public abstract class JarURLConnection extends URLConnection } /** - * Return the JAR file for this connection + * Returns a read-only JarFile object for the remote jar file * * @return The JarFile object * @@ -426,13 +426,16 @@ public abstract class JarURLConnection extends URLConnection * * @exception IOException If an error occurs */ - public Certificate[] getCertificates() throws IOException + public Certificate[] getCertificates () throws IOException { - return getJarEntry().getCertificates(); + return getJarEntry ().getCertificates (); } /** - * Returns the main Attributes for the JAR file for this connection + * Returns the main Attributes for the jar file specified in the URL or + * null if there are none + * + * @return The main Attributes for the JAR file for this connection * * @exception IOException If an error occurs */ @@ -442,7 +445,10 @@ public abstract class JarURLConnection extends URLConnection } /** - * Return the Attributes object for this connection if the URL for it points + * Returns the Attributes for the Jar entry specified by the URL or null + * if none + * + * @return The Attributes object for this connection if the URL for it points * to a JAR file entry, null otherwise * * @exception IOException If an error occurs @@ -454,7 +460,10 @@ public abstract class JarURLConnection extends URLConnection } /** - * Returns the Manifest for this connection, or null if none + * Returns a Manifest object for this jar file, or null if there is no + * manifest. + * + * @return The Manifest for this connection, or null if none * * @exception IOException If an error occurs */ diff --git a/libjava/java/net/URLConnection.java b/libjava/java/net/URLConnection.java index 2065cad314c..75adf522398 100644 --- a/libjava/java/net/URLConnection.java +++ b/libjava/java/net/URLConnection.java @@ -1021,4 +1021,5 @@ public abstract class URLConnection dateFormat3 = new SimpleDateFormat("EEE MMM d hh:mm:ss yyyy", locale); dateformats_initialized = true; } -} +} // class URLConnection + |