IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.config
Class InitUtils

java.lang.Object
  extended by com.ibm.btt.config.InitUtils

public class InitUtils
extends java.lang.Object

Utility class for initialize manager


Constructor Summary
InitUtils()
           
 
Method Summary
static Hashtable convertToClassTable(KeyedCollection kc)
          Convert KeyedCollection to Class Table (Hashtable), key is tag name, value is implement class.
static java.lang.String getAbsolutePath(java.lang.String baseFilePath, java.lang.String relativePath)
          Compute absolute path from base file path and relative path
static java.lang.String getFileDirectory(java.lang.String initialPath)
          Get directory of desired path
static java.io.BufferedInputStream getInputStream(java.lang.String aURLStr)
          This util method returns the BufferedInputStream for the aURLStr
aURLStr should be start with jar:///, file:///, http://, ftp:// or any other URL protocal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitUtils

public InitUtils()
Method Detail

getInputStream

public static java.io.BufferedInputStream getInputStream(java.lang.String aURLStr)
                                                  throws InputStreamNotFoundException
This util method returns the BufferedInputStream for the aURLStr
aURLStr should be start with jar:///, file:///, http://, ftp:// or any other URL protocal.
jar:/// is not a URL protocal, but it is still supported, this method will try to get the inputstream from the application classpath;

Parameters:
aURLStr -
Returns:
Throws:
InputStreamNotFoundException

convertToClassTable

public static Hashtable convertToClassTable(KeyedCollection kc)
                                     throws DSEInvalidArgumentException
Convert KeyedCollection to Class Table (Hashtable), key is tag name, value is implement class.

Parameters:
kc -
Returns:
Class Table
Throws:
DSEInvalidArgumentException

getFileDirectory

public static java.lang.String getFileDirectory(java.lang.String initialPath)
Get directory of desired path

Parameters:
initialPath - file path
Returns:
file folder

getAbsolutePath

public static java.lang.String getAbsolutePath(java.lang.String baseFilePath,
                                               java.lang.String relativePath)
Compute absolute path from base file path and relative path

Parameters:
baseFilePath - base file path
relativePath - relative path
Returns:
new absolute path

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2009