Home | History | Annotate | Download | only in net

Lines Matching refs:jar

29 import java.util.jar.JarFile;
30 import java.util.jar.JarEntry;
31 import java.util.jar.Attributes;
32 import java.util.jar.Manifest;
37 * A URL Connection to a Java ARchive (JAR) file or an entry in a JAR
40 * <p>The syntax of a JAR URL is:
43 * jar:&lt;url&gt;!/{entry}
48 * <p>{@code jar:http://www.foo.com/bar/baz.jar!/COM/foo/Quux.class}
50 * <p>Jar URLs should be used to refer to a JAR file or entries in
51 * a JAR file. The example above is a JAR URL which refers to a JAR
53 * JAR file:
55 * {@code jar:http://www.foo.com/bar/baz.jar!/}
58 * JarURLConnection when they know that the URL they created is a JAR
59 * URL, and they need JAR-specific functionality. For example:
62 * URL url = new URL("jar:file:/home/duke/duke.jar!/");
67 * <p>JarURLConnection instances can only be used to read from JAR files.
69 * to the underlying JAR file using this class.
74 * <dt>A Jar entry
75 * <dd>{@code jar:http://www.foo.com/bar/baz.jar!/COM/foo/Quux.class}
77 * <dt>A Jar file
78 * <dd>{@code jar:http://www.foo.com/bar/baz.jar!/}
80 * <dt>A Jar directory
81 * <dd>{@code jar:http://www.foo.com/bar/baz.jar!/COM/foo/}
87 * <p>When constructing a JAR url via {@code new URL(context, spec)},
97 * to a JAR file or a Jar directory.
99 * <li>if the specification begins with a '/', the Jar directory is
100 * ignored, and the spec is considered to be at the root of the Jar
107 * <dt>context: <b>jar:http://www.foo.com/bar/jar.jar!/</b>,
110 * <dd>url:<b>jar:http://www.foo.com/bar/jar.jar!/baz/entry.txt</b>
112 * <dt>context: <b>jar:http://www.foo.com/bar/jar.jar!/baz</b>,
115 * <dd>url:<b>jar:http://www.foo.com/bar/jar.jar!/baz/entry.txt</b>
117 * <dt>context: <b>jar:http://www.foo.com/bar/jar.jar!/baz</b>,
120 * <dd>url:<b>jar:http://www.foo.com/bar/jar.jar!/entry.txt</b>
129 * @see java.util.jar.JarFile
130 * @see java.util.jar.JarInputStream
131 * @see java.util.jar.Manifest
143 * The connection to the JAR file URL, if the connection has been
169 * REMIND: we don't handle nested JAR URLs
186 * Returns the URL for the Jar file for this connection.
188 * @return the URL for the Jar file for this connection.
196 * returns null if the JAR file URL corresponding to this
197 * connection points to a JAR file and not a JAR file entry.
206 * Return the JAR file for this connection.
208 * @return the JAR file for this connection. If the connection is
209 * a connection to an entry of a JAR file, the JAR file object is
213 * connect to the JAR file for this connection.
222 * @return the manifest object corresponding to the JAR file object
225 * @exception IOException if getting the JAR file for this
235 * Return the JAR entry object for this connection, if any. This
236 * method returns null if the JAR file URL corresponding to this
237 * connection points to a JAR file and not a JAR file entry.
239 * @return the JAR entry object for this connection, or null if
240 * the JAR URL for this connection points to a JAR file.
242 * @exception IOException if getting the JAR file for this
254 * for it points to a JAR file entry, null otherwise.
257 * for it points to a JAR file entry, null otherwise.
259 * @exception IOException if getting the JAR entry causes an
270 * Returns the main Attributes for the JAR file for this
273 * @return the main Attributes for the JAR file for this
289 * for it points to a JAR file entry, null otherwise. This method
296 * for it points to a JAR file entry, null otherwise.
298 * @exception IOException if getting the JAR entry causes an