blob: b8748ad7e6ba3871ff82aa05ecbbe032527743ee [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_25) on Sat Jun 29 08:36:29 CEST 2013 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>JarFileResourceStore (Apache Felix iPOJO ~ JavaDoc 1.10.1 API)</title>
<meta name="date" content="2013-06-29">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="JarFileResourceStore (Apache Felix iPOJO ~ JavaDoc 1.10.1 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/JarFileResourceStore.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/DirectoryResourceStore.html" title="class in org.apache.felix.ipojo.manipulator.store"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/ManifestBuilder.html" title="interface in org.apache.felix.ipojo.manipulator.store"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html" target="_top">Frames</a></li>
<li><a href="JarFileResourceStore.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.felix.ipojo.manipulator.store</div>
<h2 title="Class JarFileResourceStore" class="title">Class JarFileResourceStore</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.felix.ipojo.manipulator.store.JarFileResourceStore</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html" title="interface in org.apache.felix.ipojo.manipulator">ResourceStore</a></dd>
</dl>
<hr>
<br>
<pre>public class <a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.49">JarFileResourceStore</a>
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html" title="interface in org.apache.felix.ipojo.manipulator">ResourceStore</a></pre>
<div class="block">A <a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html" title="class in org.apache.felix.ipojo.manipulator.store"><code>JarFileResourceStore</code></a> knows how to read and write
resources from (to respectively) a Jar File.</div>
<dl><dt><span class="strong">Author:</span></dt>
<dd><a href="mailto:dev@felix.apache.org">Felix Project Team</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,byte[]&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#m_content">m_content</a></strong></code>
<div class="block">Modified resources.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/jar/Manifest.html?is-external=true" title="class or interface in java.util.jar">Manifest</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#m_manifest">m_manifest</a></strong></code>
<div class="block">Original manifest to be updated.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <a href="../../../../../../org/apache/felix/ipojo/manipulator/store/ManifestBuilder.html" title="interface in org.apache.felix.ipojo.manipulator.store">ManifestBuilder</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#m_manifestBuilder">m_manifestBuilder</a></strong></code>
<div class="block">The builder of the updated manifest.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="../../../../../../org/apache/felix/ipojo/manipulator/store/ResourceMapper.html" title="interface in org.apache.felix.ipojo.manipulator.store">ResourceMapper</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#m_mapper">m_mapper</a></strong></code>
<div class="block">Resource Mapper.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/jar/JarFile.html?is-external=true" title="class or interface in java.util.jar">JarFile</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#m_source">m_source</a></strong></code>
<div class="block">Source Jar.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#m_target">m_target</a></strong></code>
<div class="block">Target File.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#JarFileResourceStore(java.util.jar.JarFile, java.io.File)">JarFileResourceStore</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/jar/JarFile.html?is-external=true" title="class or interface in java.util.jar">JarFile</a>&nbsp;source,
<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;target)</code>
<div class="block">Construct a <a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html" title="class in org.apache.felix.ipojo.manipulator.store"><code>JarFileResourceStore</code></a> wrapping the given original bundle,
and configured to output in the given target file.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#accept(org.apache.felix.ipojo.manipulator.ResourceVisitor)">accept</a></strong>(<a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceVisitor.html" title="interface in org.apache.felix.ipojo.manipulator">ResourceVisitor</a>&nbsp;visitor)</code>
<div class="block">Browse all resources available in this store.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#close()">close</a></strong>()</code>
<div class="block">Close the store: no methods will be called anymore on this instance.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#getExternalName(java.lang.String)">getExternalName</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#getInternalPath(java.lang.String)">getInternalPath</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#isIgnored(java.util.jar.JarEntry)">isIgnored</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/jar/JarEntry.html?is-external=true" title="class or interface in java.util.jar">JarEntry</a>&nbsp;entry)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#isUpdated(java.util.jar.JarEntry)">isUpdated</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/jar/JarEntry.html?is-external=true" title="class or interface in java.util.jar">JarEntry</a>&nbsp;entry)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#open()">open</a></strong>()</code>
<div class="block">Notify the store that resource will be written.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#read(java.lang.String)">read</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path)</code>
<div class="block">Return the bytecode of the given class name.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#setManifest(java.util.jar.Manifest)">setManifest</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/jar/Manifest.html?is-external=true" title="class or interface in java.util.jar">Manifest</a>&nbsp;manifest)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#setManifestBuilder(org.apache.felix.ipojo.manipulator.store.ManifestBuilder)">setManifestBuilder</a></strong>(<a href="../../../../../../org/apache/felix/ipojo/manipulator/store/ManifestBuilder.html" title="interface in org.apache.felix.ipojo.manipulator.store">ManifestBuilder</a>&nbsp;manifestBuilder)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#setResourceMapper(org.apache.felix.ipojo.manipulator.store.ResourceMapper)">setResourceMapper</a></strong>(<a href="../../../../../../org/apache/felix/ipojo/manipulator/store/ResourceMapper.html" title="interface in org.apache.felix.ipojo.manipulator.store">ResourceMapper</a>&nbsp;mapper)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#write(java.lang.String, byte[])">write</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;resourcePath,
byte[]&nbsp;resource)</code>
<div class="block">Notify the builder that a new resource has been built and should
be stored in the resulting bundle.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#writeMetadata(org.apache.felix.ipojo.metadata.Element)">writeMetadata</a></strong>(<a href="../../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;metadata)</code>
<div class="block">Writes the given Element into this store.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="m_source">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_source</h4>
<pre>private&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/jar/JarFile.html?is-external=true" title="class or interface in java.util.jar">JarFile</a> <a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.54">m_source</a></pre>
<div class="block">Source Jar.</div>
</li>
</ul>
<a name="m_target">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_target</h4>
<pre>private&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> <a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.59">m_target</a></pre>
<div class="block">Target File.</div>
</li>
</ul>
<a name="m_content">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_content</h4>
<pre>private&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,byte[]&gt; <a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.64">m_content</a></pre>
<div class="block">Modified resources.</div>
</li>
</ul>
<a name="m_mapper">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_mapper</h4>
<pre>private&nbsp;<a href="../../../../../../org/apache/felix/ipojo/manipulator/store/ResourceMapper.html" title="interface in org.apache.felix.ipojo.manipulator.store">ResourceMapper</a> <a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.69">m_mapper</a></pre>
<div class="block">Resource Mapper.</div>
</li>
</ul>
<a name="m_manifestBuilder">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_manifestBuilder</h4>
<pre>private&nbsp;<a href="../../../../../../org/apache/felix/ipojo/manipulator/store/ManifestBuilder.html" title="interface in org.apache.felix.ipojo.manipulator.store">ManifestBuilder</a> <a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.74">m_manifestBuilder</a></pre>
<div class="block">The builder of the updated manifest.</div>
</li>
</ul>
<a name="m_manifest">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>m_manifest</h4>
<pre>private&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/jar/Manifest.html?is-external=true" title="class or interface in java.util.jar">Manifest</a> <a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.79">m_manifest</a></pre>
<div class="block">Original manifest to be updated.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="JarFileResourceStore(java.util.jar.JarFile, java.io.File)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>JarFileResourceStore</h4>
<pre>public&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.88">JarFileResourceStore</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/jar/JarFile.html?is-external=true" title="class or interface in java.util.jar">JarFile</a>&nbsp;source,
<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;target)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Construct a <a href="../../../../../../org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html" title="class in org.apache.felix.ipojo.manipulator.store"><code>JarFileResourceStore</code></a> wrapping the given original bundle,
and configured to output in the given target file.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - original Bundle</dd><dd><code>target</code> - File where the updated Bundle will be outputted</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if there is an error retrieving the Manifest from the original JarFile</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="setResourceMapper(org.apache.felix.ipojo.manipulator.store.ResourceMapper)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setResourceMapper</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.102">setResourceMapper</a>(<a href="../../../../../../org/apache/felix/ipojo/manipulator/store/ResourceMapper.html" title="interface in org.apache.felix.ipojo.manipulator.store">ResourceMapper</a>&nbsp;mapper)</pre>
</li>
</ul>
<a name="setManifestBuilder(org.apache.felix.ipojo.manipulator.store.ManifestBuilder)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setManifestBuilder</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.106">setManifestBuilder</a>(<a href="../../../../../../org/apache/felix/ipojo/manipulator/store/ManifestBuilder.html" title="interface in org.apache.felix.ipojo.manipulator.store">ManifestBuilder</a>&nbsp;manifestBuilder)</pre>
</li>
</ul>
<a name="setManifest(java.util.jar.Manifest)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setManifest</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.110">setManifest</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/jar/Manifest.html?is-external=true" title="class or interface in java.util.jar">Manifest</a>&nbsp;manifest)</pre>
</li>
</ul>
<a name="read(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read</h4>
<pre>public&nbsp;byte[]&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.114">read</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html#read(java.lang.String)">ResourceStore</a></code></strong></div>
<div class="block">Return the bytecode of the given class name.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html#read(java.lang.String)">read</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html" title="interface in org.apache.felix.ipojo.manipulator">ResourceStore</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - normalized resource path (format: org/objectweb/asm/Visitor.class)</dd>
<dt><span class="strong">Returns:</span></dt><dd>the byte array representing the given class</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if resource was not found</dd></dl>
</li>
</ul>
<a name="getInternalPath(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInternalPath</h4>
<pre>private&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.122">getInternalPath</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path)</pre>
</li>
</ul>
<a name="accept(org.apache.felix.ipojo.manipulator.ResourceVisitor)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>accept</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.126">accept</a>(<a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceVisitor.html" title="interface in org.apache.felix.ipojo.manipulator">ResourceVisitor</a>&nbsp;visitor)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html#accept(org.apache.felix.ipojo.manipulator.ResourceVisitor)">ResourceStore</a></code></strong></div>
<div class="block">Browse all resources available in this store.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html#accept(org.apache.felix.ipojo.manipulator.ResourceVisitor)">accept</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html" title="interface in org.apache.felix.ipojo.manipulator">ResourceStore</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>visitor</code> - is called for each available resource</dd></dl>
</li>
</ul>
<a name="getExternalName(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getExternalName</h4>
<pre>private&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.137">getExternalName</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path)</pre>
</li>
</ul>
<a name="open()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>open</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.141">open</a>()
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html#open()">ResourceStore</a></code></strong></div>
<div class="block">Notify the store that resource will be written.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html#open()">open</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html" title="interface in org.apache.felix.ipojo.manipulator">ResourceStore</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if there was an error</dd></dl>
</li>
</ul>
<a name="writeMetadata(org.apache.felix.ipojo.metadata.Element)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeMetadata</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.145">writeMetadata</a>(<a href="../../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;metadata)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html#writeMetadata(org.apache.felix.ipojo.metadata.Element)">ResourceStore</a></code></strong></div>
<div class="block">Writes the given Element into this store.
Typically a store implementation will use this to build a Manifest.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html#writeMetadata(org.apache.felix.ipojo.metadata.Element)">writeMetadata</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html" title="interface in org.apache.felix.ipojo.manipulator">ResourceStore</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>metadata</code> - Element metadata to be inserted</dd></dl>
</li>
</ul>
<a name="write(java.lang.String, byte[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.150">write</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;resourcePath,
byte[]&nbsp;resource)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html#write(java.lang.String, byte[])">ResourceStore</a></code></strong></div>
<div class="block">Notify the builder that a new resource has been built and should
be stored in the resulting bundle.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html#write(java.lang.String, byte[])">write</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html" title="interface in org.apache.felix.ipojo.manipulator">ResourceStore</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>resourcePath</code> - resource name of the class (format: org/objectweb/asm/Visitor.class)</dd><dd><code>resource</code> - content of the resource</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if there was an error storing the resource</dd></dl>
</li>
</ul>
<a name="close()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>close</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.154">close</a>()
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html#close()">ResourceStore</a></code></strong></div>
<div class="block">Close the store: no methods will be called anymore on this instance.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html#close()">close</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/manipulator/ResourceStore.html" title="interface in org.apache.felix.ipojo.manipulator">ResourceStore</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if close failed</dd></dl>
</li>
</ul>
<a name="isUpdated(java.util.jar.JarEntry)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUpdated</h4>
<pre>private&nbsp;boolean&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.207">isUpdated</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/jar/JarEntry.html?is-external=true" title="class or interface in java.util.jar">JarEntry</a>&nbsp;entry)</pre>
</li>
</ul>
<a name="isIgnored(java.util.jar.JarEntry)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>isIgnored</h4>
<pre>private&nbsp;boolean&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html#line.218">isIgnored</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/jar/JarEntry.html?is-external=true" title="class or interface in java.util.jar">JarEntry</a>&nbsp;entry)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/JarFileResourceStore.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/DirectoryResourceStore.html" title="class in org.apache.felix.ipojo.manipulator.store"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../../org/apache/felix/ipojo/manipulator/store/ManifestBuilder.html" title="interface in org.apache.felix.ipojo.manipulator.store"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/felix/ipojo/manipulator/store/JarFileResourceStore.html" target="_top">Frames</a></li>
<li><a href="JarFileResourceStore.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2013. All rights reserved.</small></p>
</body>
</html>