Best code examples for Java 8 JarInputStream class (java.util.jar.JarInputStream)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 JarInputStream class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Java 8 JarInputStream examples from Open Source projects
This code example shows how to use the following methods: getNextJarEntry, available, close
162:	JarInputStream jis = new JarInputStream(stream); 
-
164:	System.out.println(jis.available()); 
165:	System.out.println(jis.getNextJarEntry()); 
166:	System.out.println(jis.getNextJarEntry()); 
167:	System.out.println(jis.getNextJarEntry()); 
168:	System.out.println(jis.available()); 
169:	System.out.println(jis.getNextJarEntry()); 
170:	System.out.println(jis.available()); 
171:	jis.close(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getManifest
96:	jar = new JarInputStream(fis); 
97:	Manifest manifest = jar.getManifest(); 
-
105:	Utils.close(jar); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getManifest, close
372:	jin = new JarInputStream(inStream); 
373:	manifest = jin.getManifest(); 
374:	jin.close(); 
-
379:	jin.close(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getManifest
102:	JarInputStream is = new JarInputStream(new ByteArrayInputStream(this.content)); 
103:	return is.getManifest(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getManifest, close
13:	jarInputStream = new JarInputStream(stream); 
14:	return jarInputStream.getManifest(); 
-
18:	jarInputStream.close(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getManifest, close
402:	jin = new JarInputStream(inStream); 
403:	manifest = jin.getManifest(); 
404:	jin.close(); 
-
409:	jin.close(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getNextEntry, read, close
68:	JarInputStream jis = new JarInputStream(is, true); 
-
71:	jis.getNextEntry(); 
72:	jis.read(b, 0, 100); 
73:	jis.getNextEntry(); 
74:	jis.getNextEntry(); 
75:	jis.getNextEntry(); 
-
78:	jis.read(b, 0, 100); 
-
85:	jis.close();  // Android throws exception here, already! 
86:	jis.read(b, 0, 100);  // But RI here, only! 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getManifest, close
98:	jis = new JarInputStream(ins); 
99:	result= jis.getManifest(); 
-
108:	jis.close(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getManifest, close
68:	jis = new JarInputStream(ins); 
69:	result= jis.getManifest(); 
-
84:	jis.close(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getManifest
56:	in = new JarInputStream(storage.getInputStream()); 
57:	assertEquals(mf, in.getManifest()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getManifest
139:	final JarInputStream jarInputStream = new JarInputStream(new FileInputStream(jarName)); 
140:	return jarInputStream.getManifest(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
120:	p.pack(ji = new JarInputStream(streamBridge.getInput()), 
-
125:	IOUtils.closeQuietly(ji); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
78:	jar = new JarInputStream(is); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
20:	jarInputStreams.add(new JarInputStream(Verifier.class.getResourceAsStream("model.jar"))); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
23:	jarInputStreams.add(new JarInputStream(Verifier.class.getResourceAsStream("model.jar"))); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
70:	final JarInputStream is = new JarInputStream(super.getInputStream(wrappedJarFile)); 
71:	return new Enumeration() { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getManifest, close
332:	new JarInputStream( 
-
334:	Manifest manifest = jin.getManifest(); 
335:	jin.close(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getNextEntry, close
142:	jis = new JarInputStream(in); 
143:	if (jis.getNextEntry() == null){// if there is no next entry, this jar stream can't be used 
-
149:	jis.close(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
178:	final JarInputStream jarIn = new JarInputStream(in.getInputStream()); 
179:	return new JarStreamModule(jarIn); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: close
27:	jarStream = new JarInputStream(is); 
-
31:	jarStream.close(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getManifest, close
40:	JarInputStream jis = new JarInputStream(is); 
41:	Manifest manifest = jis.getManifest(); 
-
50:	jis.close(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getManifest, close
135:	final JarInputStream jis = new JarInputStream(new FileInputStream(f)); 
136:	final Manifest m = jis.getManifest(); 
-
139:	jis.close(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getManifest, close
213:	JarInputStream jarIn = new JarInputStream(in); 
214:	ManifestHelper helper = Osgis.ManifestHelper.forManifest(jarIn.getManifest()); 
215:	jarIn.close(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: close
255:	jis = new JarInputStream(BabuDBVersionReader.class.getResourceAsStream("jars/" + ver + ".jar")); 
-
262:	jis.close(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getNextJarEntry
33:	when(jarInputStream.getNextJarEntry()).thenThrow(new IOException()); 
34:	myJarIterator = new MyJarIterator(jarInputStream); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
141:	jis = new JarInputStream(is); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: close
255:	jis = new JarInputStream(BabuDBVersionReader.class.getResourceAsStream("jars/" + ver + ".jar")); 
-
262:	jis.close(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: close
27:	jarStream = new JarInputStream(is); 
-
31:	jarStream.close(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: close
132:	JarInputStream inStream = new JarInputStream(new FileInputStream( 
-
138:	new Archive(inStream, out, null).pack(); 
139:	inStream.close(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getManifest
14:	final Manifest manifest = inputStream.getManifest(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: close
27:	jarStream = new JarInputStream(is); 
-
31:	jarStream.close(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
73:	jarInputStream = new JarInputStream(is); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getManifest
331:	JarInputStream jis = new JarInputStream(new ByteArrayInputStream(data)); 
332:	String loaderName = (String) jis.getManifest().getMainAttributes().getValue("Extension-Loader"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getManifest, close
378:	jin = new JarInputStream(inStream); 
379:	manifest = jin.getManifest(); 
380:	jin.close(); 
-
385:	jin.close(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: close
117:	jarFile.close(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
271:	JarInputStream jin = new JarInputStream(is); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getManifest
47:	super(input.getManifest(), bundleContext, deploymentAdmin); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getNextEntry
223:	JarInputStream jis = new JarInputStream(new FileInputStream(f)); 
224:	if (jis.getNextEntry() != null) { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: close
57:	new org.apache.harmony.pack200.Archive(in, out, options).pack(); 
-
62:	in.close(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: read
258:	assertEquals(-1, jarInput.read()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: read
273:	assertEquals(-1, jarInput.read()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: close
165:	packer.pack(in, out); 
-
168:	in.close(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: close
61:	this.jarInputStream.close(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: close
33:	jarStream = new JarInputStream(is); 
-
37:	jarStream.close(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getManifest
90:	JarInputStream is = new JarInputStream(new ByteArrayInputStream(this.content)); 
91:	return is.getManifest(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
72:	Pack200.newPacker().pack( 
73:	new JarInputStream(new ByteArrayInputStream( 
Full Snippet Info
4
CodeRank
See Code Examples for Java 8 JarInputStream Methods: