diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-25 17:14:09 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-25 17:14:09 +0000 |
commit | c7380abc488ba82e7803c576eafb5eb75ff11a9e (patch) | |
tree | c7f727fc4330f40bf9d00f1200993bfa6656a8ab /libjava/java/net/JarURLConnection.java | |
parent | d84ea0df0818b1ed9ee39badf2d7961c550c7d66 (diff) | |
download | ppe42-gcc-c7380abc488ba82e7803c576eafb5eb75ff11a9e.tar.gz ppe42-gcc-c7380abc488ba82e7803c576eafb5eb75ff11a9e.zip |
2002-09-25 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java
(DatagramSocket): Initialize new instance variables.
(close): Reset new instance variables.
(getLocalAddress): Remove unneeded SecurityManager usage.
(getLocalPort): Check if socket is already bound.
(isConnected): New method.
(getInetAddress): Implemented.
(getPort): Better Implementation, documentation fixed.
(getRemoteSocketAddress): New method.
* java/net/JarURLConnection.java
(element): Typo fixed.
(getMainAttributes): New method.
(getAttributes): New method (stub only).
(getManifest): New method (stub only).
* java/net/NetPermission.java: Added serialVersionsUID.
* java/net/Socket.java
(connect): Check blocking mode of associated channel,
documentation added.
(getLocalSocketAddress): Better implementation.
(getRemoteSocketAddress): Implemented.
(isBound): New method.
(setSendBufferSize): Documentation added.
* java/net/SocketAddress.java: Added serialVersionsUID.
* java/net/SocketPermission.java: Added serialVersionsUID.
* java/net/URL.java
(URL): Wrap for shorter lines, initialize new instance variables,
documentation added.
(equals): Check new instance variables too.
(getContent): Documentation added.
(getPath): Documentation added.
(getAuthority): New method.
(getHost): Documentation added.
(getPort): Documentation added.
(getDefaultPort): New method.
(getProtocol): Documentation added.
(getUserInfo): Documentation added.
(set): Initialize new instance variables, documentation added.
* java/net/URLStreamHandler.java
(setURL): New method.
* java/net/natPlainDatagramSocketImpl.cc
(connect): Fix exception name.
(disconnect): Fix exception name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57501 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/net/JarURLConnection.java')
-rw-r--r-- | libjava/java/net/JarURLConnection.java | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/libjava/java/net/JarURLConnection.java b/libjava/java/net/JarURLConnection.java index 8f75622975f..a90c7f33037 100644 --- a/libjava/java/net/JarURLConnection.java +++ b/libjava/java/net/JarURLConnection.java @@ -34,7 +34,7 @@ public abstract class JarURLConnection extends URLConnection * either case this describes just the jar file itself. */ protected URLConnection jarFileURLConnection; - // If this is a connection to a jar file element this is set, otherwose null. + // If this is a connection to a jar file element this is set, otherwise null. private final String element; // Cached JarURLConnection's @@ -349,4 +349,39 @@ public abstract class JarURLConnection extends URLConnection { return getJarEntry().getCertificates(); } + + /** + * Returns the main Attributes for the JAR file for this connection + * + * @exception IOException If an error occurs + */ + public Attributes getMainAttributes () throws IOException + { + return getManifest ().getMainAttributes (); + } + + /** + * 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 + */ + public Attributes getAttributes () throws IOException + { + // FIXME: implement this + return null; + } + + /** + * Returns the Manifest for this connection, or null if none + * + * @exception IOException If an error occurs + */ + public Manifest getManifest () throws IOException + { + JarFile file = getJarFile (); + + // FIXME: implement this + return null; + } } |