diff options
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 8f75622..a90c7f3 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; + } } |