Пример #1
0
		internal bool IsClassesJar(Jar jar)
		{
			return classesJar != -1 && jars[classesJar] == jar;
		}
Пример #2
0
		internal bool IsResourcesJar(Jar jar)
		{
			return resourcesJar != -1 && jars[resourcesJar] == jar;
		}
Пример #3
0
		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;
		}
Пример #4
0
			internal JarEnumerator(Jar jar)
			{
				this.jar = jar;
				this.index = -1;
			}
Пример #5
0
			internal Item(Jar jar, int index)
			{
				this.Jar = jar;
				this.Index = index;
			}
Пример #6
0
		internal Jar Copy()
		{
			Jar newJar = new Jar(Name, Comment);
			newJar.Items.AddRange(Items);
			return newJar;
		}
Пример #7
0
 internal JarItemReference(Jar jar, int index)
 {
     this.Jar = jar;
     this.Index = index;
 }