internal bool IsClassesJar(Jar jar) { return classesJar != -1 && jars[classesJar] == jar; }
internal bool IsResourcesJar(Jar jar) { return resourcesJar != -1 && jars[resourcesJar] == jar; }
private Jar CreateJar(string jarName, string comment) { int count = 0; string name = jarName; retry: foreach (Jar jar in jars) { if (jar.Name == name) { name = Path.GetFileNameWithoutExtension(jarName) + "-" + (++count) + Path.GetExtension(jarName); goto retry; } } Jar newJar = new Jar(name, comment); jars.Add(newJar); return newJar; }
internal JarEnumerator(Jar jar) { this.jar = jar; this.index = -1; }
internal Item(Jar jar, int index) { this.Jar = jar; this.Index = index; }
internal Jar Copy() { Jar newJar = new Jar(Name, Comment); newJar.Items.AddRange(Items); return newJar; }
internal JarItemReference(Jar jar, int index) { this.Jar = jar; this.Index = index; }