<!doctype html> <html> <head> <title>Auxiliary Files Service</title> <link rel="stylesheet" href="styles/site.css" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="styles/icons.css" type="text/css"> <script src="js/jquery.min.js"></script> <script src="tree/collapsibleTreeMenu.js"></script> <link href="tree/collapsibleTreeMenu.css" rel="stylesheet" type="text/css"> </head> <body class="theme-default aui-theme-default"> <div id="page"> <div id="main" class="aui-page-panel"> <div id="main-header"> <div id="breadcrumb-section"> <ol id="breadcrumbs"> <li> <span><a href="Rhapsody-Integration-Engine-6.5_133160975.html">Rhapsody Integration Engine 6.5</a></span> </li> <li> <span><a href="Developing-Rhapsody_133161055.html">Developing Rhapsody</a></span> </li> <li> <span><a href="Rhapsody-Development-Kit_133161275.html">Rhapsody Development Kit</a></span> </li> <li> <span><a href="RDK-Reference_133161352.html">RDK Reference</a></span> </li> </ol> </div> <h1 id="title-heading" class="pagetitle"> <span id="title-text">Auxiliary Files Service</span> </h1> </div> <div id="content" class="view"> <div id="main-content" class="wiki-content group"> <p> </p> <p>The Auxiliary Files Service provides an interface which enables the retrieval of auxiliary files.</p> <div class="table-wrap"> <table class="confluenceTable"> <tbody> <tr> <th class="confluenceTh">Method</th> <th class="confluenceTh">Description</th> </tr> <tr> <td class="confluenceTd"><p class="p1"><code>InputStream openAuxiliaryFile(ComponentInfo <span class="s1">resource</span>, String <span class="s1">name</span>)</code></p></td> <td class="confluenceTd"><p class="p1">Retrieves an input stream for reading an auxiliary file for a component. It is the responsibility of the code that calls this method to close the input stream.</p><p class="p1">Parameters<span>:</span></p> <ul> <li class="p1"><span><code>ComponentInfo resource</code> - the component information for the resource (the component which the file belongs to).</span></li> </ul><p class="p1">Exceptions:</p> <ul> <li class="p1"><span><code>FileNotFoundException</code> - if the requested file does not exist.</span></li> <li class="p1"><span><code>SecurityException</code> - if the requested file is not accessible.</span></li> </ul></td> </tr> <tr> <td class="confluenceTd"><code>File getAuxiliaryFile(ComponentInfo <span class="s1">resource</span>, String <span class="s1">name</span>)</code></td> <td class="confluenceTd"><p class="p1">Retrieves a file for a component.</p><p class="p1">Parameters:</p> <ul> <li class="p1"><code>ComponentInfo resource</code> - the component information for the resource (the component which the file belongs to).</li> </ul><p class="p1"><span>Exceptions</span>:</p> <ul> <li class="p1"><code>FileNotFoundException</code> - if the requested file does not exist.</li> <li class="p1"><code>SecurityException</code> - if the requested file is not accessible.</li> </ul></td> </tr> <tr> <td class="confluenceTd"><p class="p1"><code>File getAuxiliaryFileDirectory(ComponentInfo <span class="s1">resource</span>)</code></p></td> <td class="confluenceTd"><p class="p1">Retrieves the auxiliary file directory.</p><p class="p1">Parameters:</p> <ul> <li class="p1"><code>ComponentInfo resource</code> - the component information for the resource (the component which the file belongs to).</li> </ul><p class="p1"><span>Exceptions</span>:</p> <ul> <li class="p1"><code>FileNotFoundException</code> - if the requested directory does not exist.</li> </ul></td> </tr> <tr> <td class="confluenceTd"><p class="p1"><code>ClassLoader createAuxiliaryFileClassLoader(ComponentInfo <span class="s1">resource</span>, ClassLoader <span class="s1">parentClassLoader</span>)</code></p></td> <td class="confluenceTd"><p class="p1">Creates a <code><span class="s1"><code></span>ClassLoader<span class="s1"></code></span></code> that includes the auxiliary file directory for the component and the JAR files at the top level of the auxiliary file store for the component.</p><p class="p1">Parameters:</p> <ul> <li class="p1"><p><code>ComponentInfo resource</code> - the component information for the resource (the component which the file belongs to).</p></li> </ul></td> </tr> </tbody> </table> </div> <p> </p> <p><span style="text-indent: 20.0px;width: auto;padding: 0.0px 4.0px 0.0px 0.0px;text-align: center;color: rgb(255,255,255);z-index: 8675309;display: none;cursor: pointer;">Save</span></p> <p><span style="text-indent: 20.0px;width: auto;padding: 0.0px 4.0px 0.0px 0.0px;text-align: center;color: rgb(255,255,255);z-index: 8675309;display: none;cursor: pointer;">Save</span></p> </div> </div> </div> </div> </body> </html>