jrunx.connectorinstaller
Class JarUtils

java.lang.Object
  |
  +--jrunx.connectorinstaller.JarUtils

public final class JarUtils
extends java.lang.Object

JarUtils: JarUtils maps all resources included in a Zip or Jar file. Additionaly, it provides a method to extract one as a blob.


Constructor Summary
JarUtils(java.lang.String jarFileName)
          Creates a JarUtils.
 
Method Summary
 void extractToFile(java.lang.String resourceName, java.lang.String outputFile)
          Extracts a jar resource to the a file.
static void main(java.lang.String[] args)
          Is a test driver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarUtils

public JarUtils(java.lang.String jarFileName)
Creates a JarUtils.
Parameters:
jarFileName - a jar or zip file
Method Detail

extractToFile

public void extractToFile(java.lang.String resourceName,
                          java.lang.String outputFile)
                   throws java.io.IOException
Extracts a jar resource to the a file.
Parameters:
resourceName - a resource name.
outputFile - the name of the file to put the resource

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Is a test driver. Given a jar file, a resource name and an output file name, it extracts the resource into the output file.


Copyright � 2002 Macromedia Corporation. All Rights Reserved.