| <!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 (1.8.0) on Sun Aug 28 20:43:01 EST 2016 --> | |
| <title>JarWrapper (Apache River v3.0.0 API Documentation (internals))</title> | |
| <meta name="date" content="2016-08-28"> | |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> | |
| <script type="text/javascript" src="../../../../script.js"></script> | |
| </head> | |
| <body> | |
| <script type="text/javascript"><!-- | |
| try { | |
| if (location.href.indexOf('is-external=true') == -1) { | |
| parent.document.title="JarWrapper (Apache River v3.0.0 API Documentation (internals))"; | |
| } | |
| } | |
| catch(err) { | |
| } | |
| //--> | |
| var methods = {"i0":10,"i1":10,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":10,"i10":10,"i11":9,"i12":9,"i13":10,"i14":9,"i15":9,"i16":9,"i17":9}; | |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; | |
| var altColor = "altColor"; | |
| var rowColor = "rowColor"; | |
| var tableTab = "tableTab"; | |
| var activeTableTab = "activeTableTab"; | |
| </script> | |
| <noscript> | |
| <div>JavaScript is disabled on your browser.</div> | |
| </noscript> | |
| <!-- ========= START OF TOP NAVBAR ======= --> | |
| <div class="topNav"><a name="navbar.top"> | |
| <!-- --> | |
| </a> | |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> | |
| <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/JarWrapper.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> | |
| <li><a href="../../../../help-doc.html">Help</a></li> | |
| </ul> | |
| </div> | |
| <div class="subNav"> | |
| <ul class="navList"> | |
| <li><a href="../../../../org/apache/river/tool/DebugDynamicPolicyProvider.Request.html" title="class in org.apache.river.tool"><span class="typeNameLink">Prev Class</span></a></li> | |
| <li><a href="../../../../org/apache/river/tool/JarWrapper.JarIndexReader.html" title="class in org.apache.river.tool"><span class="typeNameLink">Next Class</span></a></li> | |
| </ul> | |
| <ul class="navList"> | |
| <li><a href="../../../../index.html?org/apache/river/tool/JarWrapper.html" target="_top">Frames</a></li> | |
| <li><a href="JarWrapper.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: </li> | |
| <li><a href="#nested.class.summary">Nested</a> | </li> | |
| <li><a href="#field.summary">Field</a> | </li> | |
| <li><a href="#constructor.summary">Constr</a> | </li> | |
| <li><a href="#method.summary">Method</a></li> | |
| </ul> | |
| <ul class="subNavList"> | |
| <li>Detail: </li> | |
| <li><a href="#field.detail">Field</a> | </li> | |
| <li><a href="#constructor.detail">Constr</a> | </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.river.tool</div> | |
| <h2 title="Class JarWrapper" class="title">Class JarWrapper</h2> | |
| </div> | |
| <div class="contentContainer"> | |
| <ul class="inheritance"> | |
| <li><a href="http://docs.oracle.com/javase/6/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.river.tool.JarWrapper</li> | |
| </ul> | |
| </li> | |
| </ul> | |
| <div class="description"> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <hr> | |
| <br> | |
| <pre>public class <span class="typeNameLabel">JarWrapper</span> | |
| extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> | |
| <div class="block">A tool for generating "wrapper" JAR files. A wrapper JAR file contains a | |
| <code>Class-Path</code> manifest attribute listing a group of JAR files to | |
| be loaded from a common codebase. It may also, depending on applicability | |
| and selected options, contain a JAR index file, a preferred class list | |
| and/or a <code>Main-Class</code> manifest entry for the grouped JAR files. | |
| <p> | |
| The following items are discussed below: | |
| <ul> | |
| <li> <a href="#applicability">Applicability</a> | |
| <li> <a href="#running">Using the Tool</a> | |
| <li> <a href="#logging">Logging</a> | |
| <li> <a href="../../../../org/apache/river/tool/JarWrapper.html#main-java.lang.String:A-">Processing Options</a> | |
| </ul> | |
| <p> | |
| <a name="applicability"><h3>Applicability</h3></a> | |
| <p> | |
| The <code>JarWrapper</code> tool is applicable in the following deployment | |
| situations, which may overlap: | |
| <ul> | |
| <li> If a codebase contains multiple JAR files which declare preferred | |
| resources, <code>JarWrapper</code> can be used to produce a wrapper | |
| JAR file with a combined preferred list. Preferred resources are | |
| described in the documentation for the <a href="../../../../net/jini/loader/pref/package-summary.html"><code>net.jini.loader.pref</code></a> | |
| package. | |
| <p> | |
| <li> If a codebase contains multiple JAR files and requires integrity | |
| protection, <code>JarWrapper</code> can be used to produce a wrapper | |
| JAR file with a <code>Class-Path</code> attribute that uses HTTPMD | |
| URLs. HTTPMD URLs are described in the documentation for the | |
| <a href="../../../../net/jini/url/httpmd/package-summary.html"><code>net.jini.url.httpmd</code></a> package. | |
| <p> | |
| <li> If an application or service packaged as an executable JAR file | |
| refers to classes specified at deployment time (e.g., via a | |
| <a href="../../../../net/jini/config/Configuration.html" title="interface in net.jini.config"><code>Configuration</code></a>) which are not | |
| present in the JAR file or its <code>Class-Path</code>, | |
| <code>JarWrapper</code> can be used to produce a wrapper JAR file | |
| which includes the extra classes in its <code>Class-Path</code> while | |
| retaining the original <code>Main-Class</code> declaration; the | |
| wrapper JAR file can then be executed in place of the original JAR | |
| file. | |
| </ul> | |
| <p> | |
| <a name="running"><h3>Using the Tool</h3></a> | |
| <code>JarWrapper</code> can be run directly from the | |
| <a href="../../../../org/apache/river/tool/JarWrapper.html#main-java.lang.String:A-">command line</a> or can be invoked programmatically using the | |
| <a href="../../../../org/apache/river/tool/JarWrapper.html#wrap-java.lang.String-java.lang.String-java.lang.String:A-java.lang.String-boolean-"><code>wrap</code></a> method. | |
| <p> | |
| To run the tool on UNIX platforms: | |
| <blockquote><pre> | |
| java -jar <var><b>install_dir</b></var>/lib/jarwrapper.jar <var><b>processing_options</b></var> | |
| </pre></blockquote> | |
| To run the tool on Microsoft Windows platforms: | |
| <blockquote><pre> | |
| java -jar <var><b>install_dir</b></var>\lib\jarwrapper.jar <var><b>processing_options</b></var> | |
| </pre></blockquote> | |
| <p> | |
| A more specific example with options for running directly from a Unix command | |
| line might be: | |
| <blockquote><pre> | |
| % java -jar <var><b>install_dir</b></var>/lib/jarwrapper.jar \ | |
| -httpmd=SHA-1 wrapper.jar base_dir src1.jar src2.jar | |
| </pre></blockquote> | |
| where <var><b>install_dir</b></var> is the directory where the Apache | |
| River release is installed. This command line would result in the creation | |
| of a wrapper JAR file, <code>wrapper.jar</code>, in the current working | |
| directory, whose contents would be based on the source JAR files | |
| <code>src1.jar</code> and <code>src2.jar</code> (as well as any other JAR | |
| files referenced transitively through their <code>Class-Path</code> | |
| attributes or JAR indexes). The paths for <code>src1.jar</code> and | |
| <code>src2.jar</code>, as well as any transitively referenced JAR files, | |
| would be resolved relative to the <code>base_dir</code> directory. The | |
| <code>Class-Path</code> attribute of <code>wrapper.jar</code> would use | |
| HTTPMD URLs with SHA-1 digests. If any of the HTTPMD URLs encountered is | |
| found to be invalid and can not be resolved, the <code>JarWrapper</code> | |
| operation will fail. | |
| <p> | |
| The equivalent programmatic invocation of <code>JarWrapper</code> would be: | |
| <blockquote><pre> | |
| JarWrapper.wrap("wrapper.jar", "base_dir", new String[]{ "src1.jar", "src2.jar" }, "SHA-1", true, "manifest.mf" ); | |
| </pre></blockquote> | |
| <p> | |
| <a name="logging"><h3>Logging</h3></a> | |
| <p> | |
| <code>JarWrapper</code> uses the <a href="http://docs.oracle.com/javase/6/docs/api/java/util/logging/Logger.html?is-external=true" title="class or interface in java.util.logging"><code>Logger</code></a> named | |
| <code>org.apache.river.tool.JarWrapper</code> to log information at the | |
| following logging levels: | |
| <p> | |
| <table border="1" cellpadding="5" | |
| summary="Describes logging performed by JarWrapper at different | |
| logging levels"> | |
| <caption halign="center" valign="top"><b><code> | |
| org.apache.river.tool.JarWrapper</code></b></caption> | |
| <tr> <th scope="col"> Level <th scope="col"> Description </tr> | |
| <tr> | |
| <td> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/logging/Level.html?is-external=true#WARNING" title="class or interface in java.util.logging"><code>WARNING</code></a> | |
| <td> Generated JAR index entries that do not end in <code>".jar"</code> | |
| </tr> | |
| <tr> | |
| <td> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/logging/Level.html?is-external=true#FINE" title="class or interface in java.util.logging"><code>FINE</code></a> | |
| <td> Names of processed source JAR files and output wrapper JAR file | |
| </tr> | |
| <tr> | |
| <td> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/logging/Level.html?is-external=true#FINER" title="class or interface in java.util.logging"><code>FINER</code></a> | |
| <td> Processing of <code>Main-Class</code> and <code>Class-Path</code> | |
| attributes, and presence of preferred lists and JAR indexes | |
| </tr> | |
| <tr> | |
| <td> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/logging/Level.html?is-external=true#FINEST" title="class or interface in java.util.logging"><code>FINEST</code></a> | |
| <td> Processing and compilation of preferred lists and JAR indexes | |
| </tr> | |
| </table></div> | |
| <dl> | |
| <dt><span class="simpleTagLabel">Since:</span></dt> | |
| <dd>2.0</dd> | |
| <dt><span class="simpleTagLabel">Author:</span></dt> | |
| <dd>Sun Microsystems, Inc.</dd> | |
| </dl> | |
| </li> | |
| </ul> | |
| </div> | |
| <div class="summary"> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <!-- ======== NESTED CLASS SUMMARY ======== --> | |
| <ul class="blockList"> | |
| <li class="blockList"><a name="nested.class.summary"> | |
| <!-- --> | |
| </a> | |
| <h3>Nested Class Summary</h3> | |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> | |
| <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> | |
| <tr> | |
| <th class="colFirst" scope="col">Modifier and Type</th> | |
| <th class="colLast" scope="col">Class and Description</th> | |
| </tr> | |
| <tr class="altColor"> | |
| <td class="colFirst"><code>private static class </code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.JarIndexReader.html" title="class in org.apache.river.tool">JarWrapper.JarIndexReader</a></span></code> | |
| <div class="block">Parses JAR indexes.</div> | |
| </td> | |
| </tr> | |
| <tr class="rowColor"> | |
| <td class="colFirst"><code>private static class </code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.JarIndexWriter.html" title="class in org.apache.river.tool">JarWrapper.JarIndexWriter</a></span></code> | |
| <div class="block">Assembles and writes JAR indexes.</div> | |
| </td> | |
| </tr> | |
| <tr class="altColor"> | |
| <td class="colFirst"><code>private static class </code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.LocalizedIllegalArgumentException.html" title="class in org.apache.river.tool">JarWrapper.LocalizedIllegalArgumentException</a></span></code> | |
| <div class="block">IllegalArgumentException with a localized detail message.</div> | |
| </td> | |
| </tr> | |
| <tr class="rowColor"> | |
| <td class="colFirst"><code>private static class </code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.LocalizedIOException.html" title="class in org.apache.river.tool">JarWrapper.LocalizedIOException</a></span></code> | |
| <div class="block">IOException with a localized detail message.</div> | |
| </td> | |
| </tr> | |
| <tr class="altColor"> | |
| <td class="colFirst"><code>private static class </code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.PreferredListReader.html" title="class in org.apache.river.tool">JarWrapper.PreferredListReader</a></span></code> | |
| <div class="block">Parses preferred lists.</div> | |
| </td> | |
| </tr> | |
| <tr class="rowColor"> | |
| <td class="colFirst"><code>private static class </code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.PreferredListWriter.html" title="class in org.apache.river.tool">JarWrapper.PreferredListWriter</a></span></code> | |
| <div class="block">Compiles and writes combined preferred lists.</div> | |
| </td> | |
| </tr> | |
| <tr class="altColor"> | |
| <td class="colFirst"><code>private static class </code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.SourceJarURL.html" title="class in org.apache.river.tool">JarWrapper.SourceJarURL</a></span></code> | |
| <div class="block">Represents URL to a source JAR file.</div> | |
| </td> | |
| </tr> | |
| </table> | |
| </li> | |
| </ul> | |
| <!-- =========== FIELD SUMMARY =========== --> | |
| <ul class="blockList"> | |
| <li class="blockList"><a name="field.summary"> | |
| <!-- --> | |
| </a> | |
| <h3>Field Summary</h3> | |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> | |
| <caption><span>Fields</span><span class="tabEnd"> </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/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#baseDir">baseDir</a></span></code> | |
| <div class="block">Base directory, <code>null</code> in case the JAR files are specified as | |
| absolute files, the so called flatten classpath option.</div> | |
| </td> | |
| </tr> | |
| <tr class="rowColor"> | |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#classPath">classPath</a></span></code> </td> | |
| </tr> | |
| <tr class="altColor"> | |
| <td class="colFirst"><code>private static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#DEFAULT_HTTPMD_ALGORITHM">DEFAULT_HTTPMD_ALGORITHM</a></span></code> </td> | |
| </tr> | |
| <tr class="rowColor"> | |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#destJar">destJar</a></span></code> </td> | |
| </tr> | |
| <tr class="altColor"> | |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/6/docs/api/java/security/MessageDigest.html?is-external=true" title="class or interface in java.security">MessageDigest</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#digest">digest</a></span></code> </td> | |
| </tr> | |
| <tr class="rowColor"> | |
| <td class="colFirst"><code>private <a href="../../../../org/apache/river/tool/JarWrapper.JarIndexWriter.html" title="class in org.apache.river.tool">JarWrapper.JarIndexWriter</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#indexWriter">indexWriter</a></span></code> </td> | |
| </tr> | |
| <tr class="altColor"> | |
| <td class="colFirst"><code>private static <a href="http://docs.oracle.com/javase/6/docs/api/java/util/logging/Logger.html?is-external=true" title="class or interface in java.util.logging">Logger</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#logger">logger</a></span></code> </td> | |
| </tr> | |
| <tr class="rowColor"> | |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#mainClass">mainClass</a></span></code> </td> | |
| </tr> | |
| <tr class="altColor"> | |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/6/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><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#manifest">manifest</a></span></code> </td> | |
| </tr> | |
| <tr class="rowColor"> | |
| <td class="colFirst"><code>private <a href="../../../../org/apache/river/tool/JarWrapper.PreferredListWriter.html" title="class in org.apache.river.tool">JarWrapper.PreferredListWriter</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#prefWriter">prefWriter</a></span></code> </td> | |
| </tr> | |
| <tr class="altColor"> | |
| <td class="colFirst"><code>private static <a href="http://docs.oracle.com/javase/6/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#resources">resources</a></span></code> </td> | |
| </tr> | |
| <tr class="rowColor"> | |
| <td class="colFirst"><code>private static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#resourcesLock">resourcesLock</a></span></code> </td> | |
| </tr> | |
| <tr class="altColor"> | |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#seenJars">seenJars</a></span></code> </td> | |
| </tr> | |
| <tr class="rowColor"> | |
| <td class="colFirst"><code>private <a href="../../../../org/apache/river/tool/JarWrapper.SourceJarURL.html" title="class in org.apache.river.tool">JarWrapper.SourceJarURL</a>[]</code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#srcJars">srcJars</a></span></code> </td> | |
| </tr> | |
| </table> | |
| </li> | |
| </ul> | |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> | |
| <ul class="blockList"> | |
| <li class="blockList"><a name="constructor.summary"> | |
| <!-- --> | |
| </a> | |
| <h3>Constructor Summary</h3> | |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> | |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> | |
| <tr> | |
| <th class="colFirst" scope="col">Modifier</th> | |
| <th class="colLast" scope="col">Constructor and Description</th> | |
| </tr> | |
| <tr class="altColor"> | |
| <td class="colFirst"><code>private </code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#JarWrapper-java.lang.String-java.lang.String-java.lang.String:A-java.lang.String-boolean-java.util.jar.Manifest-java.util.List-">JarWrapper</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> destJar, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> baseDir, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] srcJars, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> httpmdAlg, | |
| boolean index, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/util/jar/Manifest.html?is-external=true" title="class or interface in java.util.jar">Manifest</a> mf, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a> apiClasses)</code> | |
| <div class="block">Initializes JarWrapper based on the given values.</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="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> | |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> | |
| <tr> | |
| <th class="colFirst" scope="col">Modifier and Type</th> | |
| <th class="colLast" scope="col">Method and Description</th> | |
| </tr> | |
| <tr id="i0" class="altColor"> | |
| <td class="colFirst"><code>private void</code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#deleteWrapperJar--">deleteWrapperJar</a></span>()</code> | |
| <div class="block">Attempts to delete wrapper JAR file.</div> | |
| </td> | |
| </tr> | |
| <tr id="i1" class="rowColor"> | |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#getClassPath-java.util.jar.JarFile-">getClassPath</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/jar/JarFile.html?is-external=true" title="class or interface in java.util.jar">JarFile</a> jar)</code> | |
| <div class="block">Returns URLs contained in the Class-Path attribute (if any) of the given | |
| JAR file, as a list of SourceJarURL instances.</div> | |
| </td> | |
| </tr> | |
| <tr id="i2" class="altColor"> | |
| <td class="colFirst"><code>private static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#getDigestString-java.security.MessageDigest-java.io.File-">getDigestString</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/security/MessageDigest.html?is-external=true" title="class or interface in java.security">MessageDigest</a> digest, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> file)</code> | |
| <div class="block">Returns a string representation of the message digest of the given file.</div> | |
| </td> | |
| </tr> | |
| <tr id="i3" class="rowColor"> | |
| <td class="colFirst"><code>private static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#getMainClass-java.util.jar.JarFile-">getMainClass</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/jar/JarFile.html?is-external=true" title="class or interface in java.util.jar">JarFile</a> jar)</code> | |
| <div class="block">Returns the value of the Main-Class attribute of the given JAR file, or | |
| null if none is present.</div> | |
| </td> | |
| </tr> | |
| <tr id="i4" class="altColor"> | |
| <td class="colFirst"><code>private static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#getResourceString-java.lang.String-">getResourceString</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> | |
| <div class="block">Returns localized format string, obtained from the resource bundle for | |
| JarWrapper, that corresponds to the given key, or null if the resource | |
| bundle does not contain a corresponding string.</div> | |
| </td> | |
| </tr> | |
| <tr id="i5" class="rowColor"> | |
| <td class="colFirst"><code>(package private) static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#localize-java.lang.String-">localize</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> | |
| <div class="block">Returns localized message text corresponding to the given key string.</div> | |
| </td> | |
| </tr> | |
| <tr id="i6" class="altColor"> | |
| <td class="colFirst"><code>(package private) static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#localize-java.lang.String-java.lang.Object-">localize</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> val)</code> | |
| <div class="block">Returns localized message text corresponding to the given key string, | |
| passing the provided value as an argument when formatting the message.</div> | |
| </td> | |
| </tr> | |
| <tr id="i7" class="rowColor"> | |
| <td class="colFirst"><code>(package private) static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#localize-java.lang.String-java.lang.Object:A-">localize</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] vals)</code> | |
| <div class="block">Returns localized message text corresponding to the given key string, | |
| passing the provided values as an argument when formatting the message.</div> | |
| </td> | |
| </tr> | |
| <tr id="i8" class="altColor"> | |
| <td class="colFirst"><code>static void</code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#main-java.lang.String:A-">main</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] args)</code> | |
| <div class="block">Generates a wrapper JAR file for the specified JAR files.</div> | |
| </td> | |
| </tr> | |
| <tr id="i9" class="rowColor"> | |
| <td class="colFirst"><code>private void</code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#outputWrapperJar--">outputWrapperJar</a></span>()</code> | |
| <div class="block">Writes wrapper JAR file based on information from processed source JARs.</div> | |
| </td> | |
| </tr> | |
| <tr id="i10" class="altColor"> | |
| <td class="colFirst"><code>private void</code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#process-org.apache.river.tool.JarWrapper.SourceJarURL-org.apache.river.tool.JarWrapper.PreferredListReader-">process</a></span>(<a href="../../../../org/apache/river/tool/JarWrapper.SourceJarURL.html" title="class in org.apache.river.tool">JarWrapper.SourceJarURL</a> url, | |
| <a href="../../../../org/apache/river/tool/JarWrapper.PreferredListReader.html" title="class in org.apache.river.tool">JarWrapper.PreferredListReader</a> prefReader)</code> | |
| <div class="block">Processes source JAR file indicated by the given URL, determining | |
| preferred resources using the provided preferred list reader.</div> | |
| </td> | |
| </tr> | |
| <tr id="i11" class="rowColor"> | |
| <td class="colFirst"><code>private static <a href="http://docs.oracle.com/javase/6/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><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#retrieveManifest-java.lang.String-">retrieveManifest</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fileName)</code> | |
| <div class="block">Returns the Manifest object derived from a manifest file as specified | |
| on the command line.</div> | |
| </td> | |
| </tr> | |
| <tr id="i12" class="altColor"> | |
| <td class="colFirst"><code>private static void</code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#setLoggingLevel-java.util.logging.Level-">setLoggingLevel</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging">Level</a> level)</code> | |
| <div class="block">Sets logging and console handler output level.</div> | |
| </td> | |
| </tr> | |
| <tr id="i13" class="rowColor"> | |
| <td class="colFirst"><code>private void</code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#wrap--">wrap</a></span>()</code> | |
| <div class="block">Processes source JAR files and outputs wrapper JAR file.</div> | |
| </td> | |
| </tr> | |
| <tr id="i14" class="altColor"> | |
| <td class="colFirst"><code>static void</code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#wrap-java.lang.String-java.lang.String:A-java.lang.String-boolean-java.util.jar.Manifest-java.util.List-">wrap</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> destJar, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] srcJars, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> httpmdAlg, | |
| boolean index, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/util/jar/Manifest.html?is-external=true" title="class or interface in java.util.jar">Manifest</a> mf, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a> apiClasses)</code> | |
| <div class="block">Generates a wrapper JAR file based on the provided values in the same | |
| manner as described in the documentation for <a href="../../../../org/apache/river/tool/JarWrapper.html#main-java.lang.String:A-"><code>main(java.lang.String[])</code></a>.</div> | |
| </td> | |
| </tr> | |
| <tr id="i15" class="rowColor"> | |
| <td class="colFirst"><code>static void</code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#wrap-java.lang.String-java.lang.String-java.lang.String:A-java.lang.String-boolean-">wrap</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> destJar, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> baseDir, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] srcJars, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> httpmdAlg, | |
| boolean index)</code> | |
| <div class="block">Invokes <a href="../../../../org/apache/river/tool/JarWrapper.html#wrap-java.lang.String-java.lang.String-java.lang.String:A-java.lang.String-boolean-java.util.jar.Manifest-"><code>wrap</code></a> with the provided values and a <code>null</code> manifest.</div> | |
| </td> | |
| </tr> | |
| <tr id="i16" class="altColor"> | |
| <td class="colFirst"><code>static void</code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#wrap-java.lang.String-java.lang.String-java.lang.String:A-java.lang.String-boolean-java.util.jar.Manifest-">wrap</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> destJar, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> baseDir, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] srcJars, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> httpmdAlg, | |
| boolean index, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/util/jar/Manifest.html?is-external=true" title="class or interface in java.util.jar">Manifest</a> mf)</code> | |
| <div class="block">Generates a wrapper JAR file based on the provided values in the same | |
| manner as described in the documentation for <a href="../../../../org/apache/river/tool/JarWrapper.html#main-java.lang.String:A-"><code>main(java.lang.String[])</code></a>.</div> | |
| </td> | |
| </tr> | |
| <tr id="i17" class="rowColor"> | |
| <td class="colFirst"><code>static void</code></td> | |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/tool/JarWrapper.html#wrap-java.lang.String-java.lang.String-java.lang.String:A-java.lang.String-boolean-java.util.jar.Manifest-java.util.List-">wrap</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> destJar, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> baseDir, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] srcJars, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> httpmdAlg, | |
| boolean index, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/util/jar/Manifest.html?is-external=true" title="class or interface in java.util.jar">Manifest</a> mf, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a> apiClasses)</code> | |
| <div class="block">Generates a wrapper JAR file based on the provided values in the same | |
| manner as described in the documentation for <a href="../../../../org/apache/river/tool/JarWrapper.html#main-java.lang.String:A-"><code>main(java.lang.String[])</code></a>.</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 java.lang.<a href="http://docs.oracle.com/javase/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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="resources"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>resources</h4> | |
| <pre>private static <a href="http://docs.oracle.com/javase/6/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</a> resources</pre> | |
| </li> | |
| </ul> | |
| <a name="resourcesLock"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>resourcesLock</h4> | |
| <pre>private static final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> resourcesLock</pre> | |
| </li> | |
| </ul> | |
| <a name="logger"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>logger</h4> | |
| <pre>private static final <a href="http://docs.oracle.com/javase/6/docs/api/java/util/logging/Logger.html?is-external=true" title="class or interface in java.util.logging">Logger</a> logger</pre> | |
| </li> | |
| </ul> | |
| <a name="destJar"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>destJar</h4> | |
| <pre>private final <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> destJar</pre> | |
| </li> | |
| </ul> | |
| <a name="baseDir"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>baseDir</h4> | |
| <pre>private final <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> baseDir</pre> | |
| <div class="block">Base directory, <code>null</code> in case the JAR files are specified as | |
| absolute files, the so called flatten classpath option.</div> | |
| </li> | |
| </ul> | |
| <a name="srcJars"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>srcJars</h4> | |
| <pre>private final <a href="../../../../org/apache/river/tool/JarWrapper.SourceJarURL.html" title="class in org.apache.river.tool">JarWrapper.SourceJarURL</a>[] srcJars</pre> | |
| </li> | |
| </ul> | |
| <a name="manifest"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>manifest</h4> | |
| <pre>private final <a href="http://docs.oracle.com/javase/6/docs/api/java/util/jar/Manifest.html?is-external=true" title="class or interface in java.util.jar">Manifest</a> manifest</pre> | |
| </li> | |
| </ul> | |
| <a name="digest"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>digest</h4> | |
| <pre>private final <a href="http://docs.oracle.com/javase/6/docs/api/java/security/MessageDigest.html?is-external=true" title="class or interface in java.security">MessageDigest</a> digest</pre> | |
| </li> | |
| </ul> | |
| <a name="indexWriter"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>indexWriter</h4> | |
| <pre>private final <a href="../../../../org/apache/river/tool/JarWrapper.JarIndexWriter.html" title="class in org.apache.river.tool">JarWrapper.JarIndexWriter</a> indexWriter</pre> | |
| </li> | |
| </ul> | |
| <a name="prefWriter"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>prefWriter</h4> | |
| <pre>private final <a href="../../../../org/apache/river/tool/JarWrapper.PreferredListWriter.html" title="class in org.apache.river.tool">JarWrapper.PreferredListWriter</a> prefWriter</pre> | |
| </li> | |
| </ul> | |
| <a name="classPath"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>classPath</h4> | |
| <pre>private final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a> classPath</pre> | |
| </li> | |
| </ul> | |
| <a name="mainClass"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>mainClass</h4> | |
| <pre>private <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> mainClass</pre> | |
| </li> | |
| </ul> | |
| <a name="seenJars"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>seenJars</h4> | |
| <pre>private final <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a> seenJars</pre> | |
| </li> | |
| </ul> | |
| <a name="DEFAULT_HTTPMD_ALGORITHM"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockListLast"> | |
| <li class="blockList"> | |
| <h4>DEFAULT_HTTPMD_ALGORITHM</h4> | |
| <pre>private static final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> DEFAULT_HTTPMD_ALGORITHM</pre> | |
| <dl> | |
| <dt><span class="seeLabel">See Also:</span></dt> | |
| <dd><a href="../../../../constant-values.html#org.apache.river.tool.JarWrapper.DEFAULT_HTTPMD_ALGORITHM">Constant Field Values</a></dd> | |
| </dl> | |
| </li> | |
| </ul> | |
| </li> | |
| </ul> | |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> | |
| <ul class="blockList"> | |
| <li class="blockList"><a name="constructor.detail"> | |
| <!-- --> | |
| </a> | |
| <h3>Constructor Detail</h3> | |
| <a name="JarWrapper-java.lang.String-java.lang.String-java.lang.String:A-java.lang.String-boolean-java.util.jar.Manifest-java.util.List-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockListLast"> | |
| <li class="blockList"> | |
| <h4>JarWrapper</h4> | |
| <pre>private JarWrapper(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> destJar, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> baseDir, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] srcJars, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> httpmdAlg, | |
| boolean index, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/util/jar/Manifest.html?is-external=true" title="class or interface in java.util.jar">Manifest</a> mf, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a> apiClasses)</pre> | |
| <div class="block">Initializes JarWrapper based on the given values.</div> | |
| </li> | |
| </ul> | |
| </li> | |
| </ul> | |
| <!-- ============ METHOD DETAIL ========== --> | |
| <ul class="blockList"> | |
| <li class="blockList"><a name="method.detail"> | |
| <!-- --> | |
| </a> | |
| <h3>Method Detail</h3> | |
| <a name="main-java.lang.String:A-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>main</h4> | |
| <pre>public static void main(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] args)</pre> | |
| <div class="block">Generates a wrapper JAR file for the specified JAR files. The command | |
| line arguments are: | |
| <pre> | |
| [ <var>options</var> ] <var>dest-jar</var> <var>base-dir</var> <var>src-jar</var> [ <var>src-jar</var> ...] | |
| </pre> | |
| The <var>dest-jar</var> argument specifies the name of the wrapper JAR | |
| file to generate. The <var>base-dir</var> argument specifies the base | |
| directory from which to locate source JAR files to wrap. The | |
| <var>src-jar</var> arguments are non-absolute URLs to "top-level" source | |
| JAR files relative to <var>base-dir</var>; they also constitute the | |
| basis of the <code>Class-Path</code> attribute included in the generated | |
| wrapper JAR file. JAR files not present in the command line but | |
| indirectly referenced via JAR index or <code>Class-Path</code> entries | |
| in source JAR files will themselves be used as source JAR files, and | |
| will appear alongside the top-level source JAR files in the | |
| <code>Class-Path</code> attribute of the wrapper JAR file in depth-first | |
| order, with JAR index references appearing before | |
| <code>Class-Path</code> references. This utility does not modify any | |
| source JAR files. | |
| <p> | |
| If any of the top-level source JAR files contain preferred resources (as | |
| indicated by a preferred list in the JAR file), then a preferred list | |
| describing resource preferences across all source JAR files will be | |
| included in the wrapper JAR file. The preferred list of a top-level | |
| source JAR file is interpreted as applying to that JAR file along with | |
| all JAR files transitively referenced by it through JAR index or | |
| <code>Class-Path</code> entries, excluding JAR files that have already | |
| been encountered in the processing of preceding top-level JAR files. If | |
| a given top-level source JAR file does not contain a preferred list, | |
| then all resources contained in it and its transitively referenced JAR | |
| files (again, excluding those previously encountered) are considered not | |
| preferred. Preferred lists are described further in the documentation | |
| for <a href="../../../../net/jini/loader/pref/PreferredClassLoader.html" title="class in net.jini.loader.pref"><code>PreferredClassLoader</code></a>. | |
| <p> | |
| If any of the top-level source JAR files declare a | |
| <code>Main-Class</code> manifest entry, then the wrapper JAR file will | |
| include a <code>Main-Class</code> manifest entry whose value is that of | |
| the first top-level source JAR file listed on the command line which | |
| defines a <code>Main-Class</code> entry. | |
| <p> | |
| Note that attribute values generated by this utility, such as those for | |
| the <code>Class-Path</code> and <code>Main-Class</code> attributes | |
| described above, do not take precedence over values for the same | |
| attributes contained in a manifest file explicitly specified using the | |
| <code>-manifest</code> option (described below). | |
| <p> | |
| Supported options for this tool include: | |
| <p> | |
| <dl> | |
| <dt> <code>-verbose</code> | |
| <dd> Sets the level of the <code>org.apache.river.tool.JarWrapper</code> | |
| logger to <code>Level.FINER</code>. | |
| <p> | |
| <dt> <code>-httpmd[=algorithm]</code> | |
| <dd> Use (relative) HTTPMD URLs in the <code>Class-Path</code> | |
| attribute of the generated wrapper JAR file. The default is to | |
| use HTTP URLs. Digests for HTTPMD URLs are calculated using the | |
| given algorithm, or SHA-1 if none is specified. | |
| <p> | |
| <dt> <code>-noindex</code> | |
| <dd> Do not include a JAR index in the generated wrapper JAR file. The | |
| default is to compile an index based on the contents of the | |
| source JAR files. | |
| <p> | |
| <dt> <code>-manifest=<I>file</I></code> | |
| <dd> Specifies a manifest file containing attribute values to include | |
| in the manifest file inside the generated wrapper JAR file. | |
| This allows enables users to add additional metadata or | |
| override JarWrapper's generated values to customize the resulting | |
| manifest. The values contained in this optional file take | |
| precedence over the generated content. This flag is conceptually | |
| similar to the jar utilities <code>m</code> flag. In the current | |
| version there are four possible attributes that can be overridden | |
| in the target Manifest. These are | |
| <code>Name.MANIFEST_VERSION</code>, | |
| <code>Name("Created-By")</code>, <code>Name.CLASS_PATH</code> and | |
| <code>Name.MAIN_CLASS</code>. Any additonal attributes beyond | |
| these four will be appended to the manifest attribute list and | |
| will appear in the resultant <code>MANIFEST.MF</code> file. | |
| </dl></div> | |
| </li> | |
| </ul> | |
| <a name="wrap-java.lang.String-java.lang.String-java.lang.String:A-java.lang.String-boolean-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>wrap</h4> | |
| <pre>public static void wrap(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> destJar, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> baseDir, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] srcJars, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> httpmdAlg, | |
| boolean index) | |
| throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> | |
| <div class="block">Invokes <a href="../../../../org/apache/river/tool/JarWrapper.html#wrap-java.lang.String-java.lang.String-java.lang.String:A-java.lang.String-boolean-java.util.jar.Manifest-"><code>wrap</code></a> with the provided values and a <code>null</code> manifest.</div> | |
| <dl> | |
| <dt><span class="paramLabel">Parameters:</span></dt> | |
| <dd><code>destJar</code> - name of the wrapper JAR file to generate</dd> | |
| <dd><code>baseDir</code> - base directory from which to locate source JAR | |
| files to wrap</dd> | |
| <dd><code>srcJars</code> - list of top-level source JAR files to process</dd> | |
| <dd><code>httpmdAlg</code> - name of algorithm to use for generating HTTPMD URLs, or | |
| <code>null</code> if plain HTTP URLs should be used</dd> | |
| <dd><code>index</code> - if <code>true</code>, generate a JAR index; if | |
| <code>false</code>, do not generate one</dd> | |
| <dt><span class="throwsLabel">Throws:</span></dt> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an I/O error occurs while processing source JAR | |
| files or generating the wrapper JAR file</dd> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the provided values are invalid</dd> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>destJar</code>, | |
| <code>baseDir</code>, <code>srcJars</code>, or any element of | |
| <code>srcJars</code> is <code>null</code></dd> | |
| </dl> | |
| </li> | |
| </ul> | |
| <a name="wrap-java.lang.String-java.lang.String-java.lang.String:A-java.lang.String-boolean-java.util.jar.Manifest-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>wrap</h4> | |
| <pre>public static void wrap(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> destJar, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> baseDir, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] srcJars, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> httpmdAlg, | |
| boolean index, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/util/jar/Manifest.html?is-external=true" title="class or interface in java.util.jar">Manifest</a> mf) | |
| throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> | |
| <div class="block">Generates a wrapper JAR file based on the provided values in the same | |
| manner as described in the documentation for <a href="../../../../org/apache/river/tool/JarWrapper.html#main-java.lang.String:A-"><code>main(java.lang.String[])</code></a>. The only | |
| difference between this method and <code>main</code> is that it receives | |
| its values as explicit arguments instead of in a command line, and | |
| indicates failure by throwing an exception.</div> | |
| <dl> | |
| <dt><span class="paramLabel">Parameters:</span></dt> | |
| <dd><code>destJar</code> - name of the wrapper JAR file to generate</dd> | |
| <dd><code>baseDir</code> - base directory from which to locate source JAR | |
| files to wrap</dd> | |
| <dd><code>srcJars</code> - list of top-level source JAR files to process</dd> | |
| <dd><code>httpmdAlg</code> - name of algorithm to use for generating HTTPMD URLs, or | |
| <code>null</code> if plain HTTP URLs should be used</dd> | |
| <dd><code>index</code> - if <code>true</code>, generate a JAR index; if | |
| <code>false</code>, do not generate one</dd> | |
| <dd><code>mf</code> - manifest containing values to include in the manifest file | |
| of the generated wrapper JAR file</dd> | |
| <dt><span class="throwsLabel">Throws:</span></dt> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an I/O error occurs while processing source JAR | |
| files or generating the wrapper JAR file</dd> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the provided values are invalid</dd> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>destJar</code>, | |
| <code>baseDir</code>, <code>srcJars</code>, or any element of | |
| <code>srcJars</code> is <code>null</code></dd> | |
| <dt><span class="simpleTagLabel">Since:</span></dt> | |
| <dd>2.1</dd> | |
| </dl> | |
| </li> | |
| </ul> | |
| <a name="wrap-java.lang.String-java.lang.String-java.lang.String:A-java.lang.String-boolean-java.util.jar.Manifest-java.util.List-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>wrap</h4> | |
| <pre>public static void wrap(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> destJar, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> baseDir, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] srcJars, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> httpmdAlg, | |
| boolean index, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/util/jar/Manifest.html?is-external=true" title="class or interface in java.util.jar">Manifest</a> mf, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a> apiClasses) | |
| throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> | |
| <div class="block">Generates a wrapper JAR file based on the provided values in the same | |
| manner as described in the documentation for <a href="../../../../org/apache/river/tool/JarWrapper.html#main-java.lang.String:A-"><code>main(java.lang.String[])</code></a>. The only | |
| difference between this method and <code>main</code> is that it receives | |
| its values as explicit arguments instead of in a command line, and | |
| indicates failure by throwing an exception.</div> | |
| <dl> | |
| <dt><span class="paramLabel">Parameters:</span></dt> | |
| <dd><code>destJar</code> - name of the wrapper JAR file to generate</dd> | |
| <dd><code>baseDir</code> - base directory from which to locate source JAR | |
| files to wrap</dd> | |
| <dd><code>srcJars</code> - list of top-level source JAR files to process</dd> | |
| <dd><code>httpmdAlg</code> - name of algorithm to use for generating HTTPMD URLs, or | |
| <code>null</code> if plain HTTP URLs should be used</dd> | |
| <dd><code>index</code> - if <code>true</code>, generate a JAR index; if | |
| <code>false</code>, do not generate one</dd> | |
| <dd><code>mf</code> - manifest containing values to include in the manifest file | |
| of the generated wrapper JAR file</dd> | |
| <dd><code>apiClasses</code> - list of binary class names (type <code>String</code>) | |
| that must be considered API classes in case a preferences conflict | |
| arises during wrapping of the JAR files, or <code>null</code> in case | |
| no such list is available</dd> | |
| <dt><span class="throwsLabel">Throws:</span></dt> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an I/O error occurs while processing source JAR | |
| files or generating the wrapper JAR file</dd> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the provided values are invalid</dd> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>destJar</code>, | |
| <code>baseDir</code>, <code>srcJars</code>, or any element of | |
| <code>srcJars</code> is <code>null</code></dd> | |
| </dl> | |
| </li> | |
| </ul> | |
| <a name="wrap-java.lang.String-java.lang.String:A-java.lang.String-boolean-java.util.jar.Manifest-java.util.List-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>wrap</h4> | |
| <pre>public static void wrap(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> destJar, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] srcJars, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> httpmdAlg, | |
| boolean index, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/util/jar/Manifest.html?is-external=true" title="class or interface in java.util.jar">Manifest</a> mf, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a> apiClasses) | |
| throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> | |
| <div class="block">Generates a wrapper JAR file based on the provided values in the same | |
| manner as described in the documentation for <a href="../../../../org/apache/river/tool/JarWrapper.html#main-java.lang.String:A-"><code>main(java.lang.String[])</code></a>. | |
| <p> | |
| The difference between this method and the 6 and 7-arg <code>wrap</code> | |
| method is that the source JAR files must be specified by an absolute path | |
| and that for processing the classpath will be flattened, i.e. each source | |
| JAR file will be considered as relative to its parent directory (that | |
| will serve as a virtual base directory) for the assembly of the | |
| <code>Class-Path</code> entry.</div> | |
| <dl> | |
| <dt><span class="paramLabel">Parameters:</span></dt> | |
| <dd><code>destJar</code> - name of the wrapper JAR file to generate</dd> | |
| <dd><code>srcJars</code> - list of top-level source JAR files to process, must be | |
| absolute paths</dd> | |
| <dd><code>httpmdAlg</code> - name of algorithm to use for generating HTTPMD URLs, or | |
| <code>null</code> if plain HTTP URLs should be used</dd> | |
| <dd><code>index</code> - if <code>true</code>, generate a JAR index; if | |
| <code>false</code>, do not generate one</dd> | |
| <dd><code>mf</code> - manifest containing values to include in the manifest file | |
| of the generated wrapper JAR file</dd> | |
| <dd><code>apiClasses</code> - list of binary class names (type <code>String</code>) | |
| that must be considered API classes in case a preferences conflict | |
| arises during wrapping of the JAR files, or <code>null</code> in case | |
| no such list is available</dd> | |
| <dt><span class="throwsLabel">Throws:</span></dt> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an I/O error occurs while processing source JAR | |
| files or generating the wrapper JAR file</dd> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the provided values are invalid</dd> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if <code>destJar</code>, | |
| <code>srcJars</code>, or any element of <code>srcJars</code> is | |
| <code>null</code></dd> | |
| </dl> | |
| </li> | |
| </ul> | |
| <a name="wrap--"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>wrap</h4> | |
| <pre>private void wrap() | |
| throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> | |
| <div class="block">Processes source JAR files and outputs wrapper JAR file.</div> | |
| <dl> | |
| <dt><span class="throwsLabel">Throws:</span></dt> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> | |
| </dl> | |
| </li> | |
| </ul> | |
| <a name="process-org.apache.river.tool.JarWrapper.SourceJarURL-org.apache.river.tool.JarWrapper.PreferredListReader-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>process</h4> | |
| <pre>private void process(<a href="../../../../org/apache/river/tool/JarWrapper.SourceJarURL.html" title="class in org.apache.river.tool">JarWrapper.SourceJarURL</a> url, | |
| <a href="../../../../org/apache/river/tool/JarWrapper.PreferredListReader.html" title="class in org.apache.river.tool">JarWrapper.PreferredListReader</a> prefReader) | |
| throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> | |
| <div class="block">Processes source JAR file indicated by the given URL, determining | |
| preferred resources using the provided preferred list reader. If the | |
| preferred list reader is null, then the URL is for a top-level source | |
| JAR file, in which case the preferred list of the JAR file should be | |
| read, if the JAR file has not already been processed.</div> | |
| <dl> | |
| <dt><span class="throwsLabel">Throws:</span></dt> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> | |
| </dl> | |
| </li> | |
| </ul> | |
| <a name="getClassPath-java.util.jar.JarFile-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>getClassPath</h4> | |
| <pre>private <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a> getClassPath(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/jar/JarFile.html?is-external=true" title="class or interface in java.util.jar">JarFile</a> jar) | |
| throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> | |
| <div class="block">Returns URLs contained in the Class-Path attribute (if any) of the given | |
| JAR file, as a list of SourceJarURL instances.</div> | |
| <dl> | |
| <dt><span class="throwsLabel">Throws:</span></dt> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> | |
| </dl> | |
| </li> | |
| </ul> | |
| <a name="outputWrapperJar--"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>outputWrapperJar</h4> | |
| <pre>private void outputWrapperJar() | |
| throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> | |
| <div class="block">Writes wrapper JAR file based on information from processed source JARs.</div> | |
| <dl> | |
| <dt><span class="throwsLabel">Throws:</span></dt> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> | |
| </dl> | |
| </li> | |
| </ul> | |
| <a name="deleteWrapperJar--"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>deleteWrapperJar</h4> | |
| <pre>private void deleteWrapperJar()</pre> | |
| <div class="block">Attempts to delete wrapper JAR file.</div> | |
| </li> | |
| </ul> | |
| <a name="getMainClass-java.util.jar.JarFile-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>getMainClass</h4> | |
| <pre>private static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getMainClass(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/jar/JarFile.html?is-external=true" title="class or interface in java.util.jar">JarFile</a> jar) | |
| throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> | |
| <div class="block">Returns the value of the Main-Class attribute of the given JAR file, or | |
| null if none is present.</div> | |
| <dl> | |
| <dt><span class="throwsLabel">Throws:</span></dt> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> | |
| </dl> | |
| </li> | |
| </ul> | |
| <a name="getDigestString-java.security.MessageDigest-java.io.File-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>getDigestString</h4> | |
| <pre>private static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getDigestString(<a href="http://docs.oracle.com/javase/6/docs/api/java/security/MessageDigest.html?is-external=true" title="class or interface in java.security">MessageDigest</a> digest, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> file) | |
| throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> | |
| <div class="block">Returns a string representation of the message digest of the given file.</div> | |
| <dl> | |
| <dt><span class="throwsLabel">Throws:</span></dt> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> | |
| </dl> | |
| </li> | |
| </ul> | |
| <a name="setLoggingLevel-java.util.logging.Level-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>setLoggingLevel</h4> | |
| <pre>private static void setLoggingLevel(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging">Level</a> level)</pre> | |
| <div class="block">Sets logging and console handler output level.</div> | |
| </li> | |
| </ul> | |
| <a name="localize-java.lang.String-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>localize</h4> | |
| <pre>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> localize(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</pre> | |
| <div class="block">Returns localized message text corresponding to the given key string.</div> | |
| </li> | |
| </ul> | |
| <a name="localize-java.lang.String-java.lang.Object-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>localize</h4> | |
| <pre>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> localize(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> val)</pre> | |
| <div class="block">Returns localized message text corresponding to the given key string, | |
| passing the provided value as an argument when formatting the message.</div> | |
| </li> | |
| </ul> | |
| <a name="localize-java.lang.String-java.lang.Object:A-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>localize</h4> | |
| <pre>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> localize(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, | |
| <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] vals)</pre> | |
| <div class="block">Returns localized message text corresponding to the given key string, | |
| passing the provided values as an argument when formatting the message.</div> | |
| </li> | |
| </ul> | |
| <a name="getResourceString-java.lang.String-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockList"> | |
| <li class="blockList"> | |
| <h4>getResourceString</h4> | |
| <pre>private static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getResourceString(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</pre> | |
| <div class="block">Returns localized format string, obtained from the resource bundle for | |
| JarWrapper, that corresponds to the given key, or null if the resource | |
| bundle does not contain a corresponding string.</div> | |
| </li> | |
| </ul> | |
| <a name="retrieveManifest-java.lang.String-"> | |
| <!-- --> | |
| </a> | |
| <ul class="blockListLast"> | |
| <li class="blockList"> | |
| <h4>retrieveManifest</h4> | |
| <pre>private static <a href="http://docs.oracle.com/javase/6/docs/api/java/util/jar/Manifest.html?is-external=true" title="class or interface in java.util.jar">Manifest</a> retrieveManifest(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fileName) | |
| throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> | |
| <div class="block">Returns the Manifest object derived from a manifest file as specified | |
| on the command line.</div> | |
| <dl> | |
| <dt><span class="throwsLabel">Throws:</span></dt> | |
| <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> | |
| </dl> | |
| </li> | |
| </ul> | |
| </li> | |
| </ul> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| <!-- ========= END OF CLASS DATA ========= --> | |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> | |
| <div class="bottomNav"><a name="navbar.bottom"> | |
| <!-- --> | |
| </a> | |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> | |
| <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/JarWrapper.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> | |
| <li><a href="../../../../help-doc.html">Help</a></li> | |
| </ul> | |
| </div> | |
| <div class="subNav"> | |
| <ul class="navList"> | |
| <li><a href="../../../../org/apache/river/tool/DebugDynamicPolicyProvider.Request.html" title="class in org.apache.river.tool"><span class="typeNameLink">Prev Class</span></a></li> | |
| <li><a href="../../../../org/apache/river/tool/JarWrapper.JarIndexReader.html" title="class in org.apache.river.tool"><span class="typeNameLink">Next Class</span></a></li> | |
| </ul> | |
| <ul class="navList"> | |
| <li><a href="../../../../index.html?org/apache/river/tool/JarWrapper.html" target="_top">Frames</a></li> | |
| <li><a href="JarWrapper.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: </li> | |
| <li><a href="#nested.class.summary">Nested</a> | </li> | |
| <li><a href="#field.summary">Field</a> | </li> | |
| <li><a href="#constructor.summary">Constr</a> | </li> | |
| <li><a href="#method.summary">Method</a></li> | |
| </ul> | |
| <ul class="subNavList"> | |
| <li>Detail: </li> | |
| <li><a href="#field.detail">Field</a> | </li> | |
| <li><a href="#constructor.detail">Constr</a> | </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 2007-2013, multiple authors.<br>Licensed under the <a href=http://www.apache.org/licenses/LICENSE-2.0 target=child >Apache License, Version 2.0</a>, see the <a href=../../../../doc-files/NOTICE target=child >NOTICE</a> file for attributions.</small></p> | |
| </body> | |
| </html> |