IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.tools.migration.fileimport
Class ImportFromURL

java.lang.Object
  extended bycom.ibm.btt.tools.migration.fileimport.ImportFromURL

public class ImportFromURL
extends java.lang.Object

ImportFromURL Import the BTT 4.3.x defintion files from the disk or URL. Limitation: If it is from URL, then the self-define files which don't be specified in dse.ini can't not import and retrieve.


Field Summary
protected  java.io.File archive
           
(package private)  Vector definitionFiles
           
(package private)  java.lang.String path
           
 
Constructor Summary
ImportFromURL()
           
 
Method Summary
protected  Vector createSelfDefinedOpList()
           
protected  void getDefSelfDefFiles(java.lang.String[] copiedFiles, java.lang.String targetLoc)
           
protected  java.lang.String getEntityPath()
           
 java.lang.String getTargetPath()
          Get the target path to put the imported files
protected  void importDefinitionFiles(boolean fromEAR, java.lang.String entityLoc, java.lang.String targetLoc)
           
 void importFromURL(java.lang.String dseIniFile)
          Constructor.
protected  void importSelfDefFiles(boolean fromEAR, java.lang.String entityLoc, java.lang.String targetLoc)
           
protected  boolean isBTTDefFiles(java.lang.String filename)
           
static void main(java.lang.String[] args)
           
protected  void makeDefFileNameList()
           
protected  int read_write(boolean fromEAR, java.lang.String importFile, java.lang.String targetFile)
           
protected  void setEntityPath(java.lang.String string)
           
 void setTargetPath(java.lang.String string)
          Set the target path which will place the imported defintion files
protected  int writeFile(java.io.InputStream in, java.lang.String targetFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

java.lang.String path

archive

protected java.io.File archive

definitionFiles

Vector definitionFiles
Constructor Detail

ImportFromURL

public ImportFromURL()
Method Detail

isBTTDefFiles

protected boolean isBTTDefFiles(java.lang.String filename)

main

public static void main(java.lang.String[] args)

makeDefFileNameList

protected void makeDefFileNameList()

importFromURL

public void importFromURL(java.lang.String dseIniFile)
                   throws java.lang.Exception
Constructor. Import the definition file with the specified dse.ini file from the disk or URL.

Parameters:
dseIniFile -
Throws:
java.lang.Exception

importDefinitionFiles

protected void importDefinitionFiles(boolean fromEAR,
                                     java.lang.String entityLoc,
                                     java.lang.String targetLoc)
                              throws DSEException,
                                     java.lang.Exception
Throws:
DSEException
java.lang.Exception

importSelfDefFiles

protected void importSelfDefFiles(boolean fromEAR,
                                  java.lang.String entityLoc,
                                  java.lang.String targetLoc)
                           throws java.lang.Exception
Throws:
java.lang.Exception

createSelfDefinedOpList

protected Vector createSelfDefinedOpList()
                                  throws java.io.IOException
Throws:
java.io.IOException

getDefSelfDefFiles

protected void getDefSelfDefFiles(java.lang.String[] copiedFiles,
                                  java.lang.String targetLoc)
                           throws java.lang.Exception
Throws:
java.lang.Exception

read_write

protected int read_write(boolean fromEAR,
                         java.lang.String importFile,
                         java.lang.String targetFile)
                  throws java.lang.Exception
Throws:
java.lang.Exception

writeFile

protected int writeFile(java.io.InputStream in,
                        java.lang.String targetFile)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getEntityPath

protected java.lang.String getEntityPath()

setEntityPath

protected void setEntityPath(java.lang.String string)

getTargetPath

public java.lang.String getTargetPath()
Get the target path to put the imported files

Returns:
String

setTargetPath

public void setTargetPath(java.lang.String string)
Set the target path which will place the imported defintion files

Parameters:
string -

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005