Home | History | Annotate | Download | only in misc

Lines Matching refs:jar

30 import java.util.jar.*;
35 * and resources to their enclosing JAR files. Mappings are kept
49 * package/classe/resource to jar file list(s)
55 * jar file to package/class/resource lists
60 * An ordered list of jar file names.
78 * Constructs a new, empty jar index.
96 * Constructs a new index for the specified list of jar files.
98 * @param files the list of jar files to construct the index from.
107 * Returns the jar index, or <code>null</code> if none.
112 * @param jar the JAR file to get the index from.
115 public static JarIndex getJarIndex(JarFile jar) throws IOException {
116 return getJarIndex(jar, null);
120 * Returns the jar index, or <code>null</code> if none.
122 * @param jar the JAR file to get the index from.
125 public static JarIndex getJarIndex(JarFile jar, MetaIndex metaIndex) throws IOException {
128 if META-INF/INDEX.LIST is contained in jar file or not.
134 JarEntry e = jar.getJarEntry(INDEX_NAME);
137 index = new JarIndex(jar.getInputStream(e));
143 * Returns the jar files that are defined in this index.
165 * Returns the list of jar files that are mapped to the file.
183 * jar file. If there were no mapping for the package of the
185 * the jar file is added to the list and a new mapping from
186 * the package to the jar file list is added to the hashmap.
187 * Otherwise, the jar file will be added to the end of the
191 * @param jarName the jar file that the file is mapped to
223 * Go through all the jar files and construct the
282 /* print out the jar file name */
283 String jar = jarFiles[i];
284 bw.write(jar + "\n");
285 LinkedList jarlist = (LinkedList)jarMap.get(jar);
311 /* an ordered list of jar file names */
314 /* read until we see a .jar line */
315 while((line = br.readLine()) != null && !line.endsWith(".jar"));
321 if (line.endsWith(".jar")) {