org.semwebcentral.sweetrules.util
Class SweetJarUtil

java.lang.Object
  extended byorg.semwebcentral.sweetrules.util.SweetJarUtil

public class SweetJarUtil
extends java.lang.Object


Provides utilities to access the resources within the jar file

Modified on: Aug 25, 2004, 2:07:18 PM

Author:
Shashidhara K Ganjugunte, Dr. Benjamin Grosof, Dr. Said Tabet, Chitravanu Neogy

Constructor Summary
SweetJarUtil()
           
 
Method Summary
 java.io.File createTempFileFromJarResource(java.lang.String relativePath, java.lang.String tempFilePattern, java.lang.String tempFileExtension)
          Creates a temporary file from the specified jar resource (file within jar file) and returns the file handle of the temporary file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SweetJarUtil

public SweetJarUtil()
Method Detail

createTempFileFromJarResource

public java.io.File createTempFileFromJarResource(java.lang.String relativePath,
                                                  java.lang.String tempFilePattern,
                                                  java.lang.String tempFileExtension)
                                           throws java.lang.Exception
Creates a temporary file from the specified jar resource (file within jar file) and returns the file handle of the temporary file

Parameters:
relativePath - The relative path of the resource in the jar file
Returns:
File The file handle of the temporary file
Throws:
java.lang.Exception