ch.elca.dependency.util
Class IOManager

java.lang.Object
  |
  +--ch.elca.dependency.util.IOManager

public class IOManager
extends java.lang.Object

IOManager is used as manager of all operations that include the world outside the jvm Dependency Tool runs within.

Version:
1.0-beta
Author:
Pawel Kowalski

Constructor Summary
IOManager()
           
 
Method Summary
static void deleteTempDir()
           
static java.lang.String getDotExe()
          Get the complete path and the name of the dot.exe layouter
static java.lang.String getDotExeName()
          Get name of the dot.exe graph layouter
static java.lang.String getDotExePath()
          Get the absolute path to the dot.exe graph layouter.
static java.io.File getNewReportFile(java.lang.String filename)
          Get an empty File for writing reports into.
static java.io.File getOutputDir()
          Get the the output directory.
static java.lang.String getOutputPath()
          Get the path to the output directory.
static java.io.File getTempDir()
          Create a temporary directory which will be used for unzipping jars.
static java.lang.String getToolInstallationPath()
          Get the installation path of the Dependency Tool.
static void setOutputRoot(java.lang.String analyseRoot)
          Set the output directory Dependency Tool will use to write files into.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOManager

public IOManager()
Method Detail

getNewReportFile

public static java.io.File getNewReportFile(java.lang.String filename)
                                     throws java.io.IOException,
                                            java.lang.SecurityException
Get an empty File for writing reports into. Class ch.elca.dependency.report.Report uses this method to get a File for writing its reports.

Parameters:
filename - a String value
Returns:
a File value
Throws:
java.io.IOException - if an error occurs
java.lang.SecurityException - if an error occurs

getToolInstallationPath

public static java.lang.String getToolInstallationPath()
Get the installation path of the Dependency Tool.

Returns:
a String value

getDotExePath

public static java.lang.String getDotExePath()
Get the absolute path to the dot.exe graph layouter.

Returns:
a String value

getDotExeName

public static java.lang.String getDotExeName()
Get name of the dot.exe graph layouter

Returns:
a String value

getDotExe

public static java.lang.String getDotExe()
Get the complete path and the name of the dot.exe layouter

Returns:
a String value

getOutputPath

public static java.lang.String getOutputPath()
                                      throws java.lang.SecurityException
Get the path to the output directory. The Dependency Tool uses this dir to write reports and to save graphs.

Returns:
a String value
Throws:
java.lang.SecurityException - if an error occurs

setOutputRoot

public static void setOutputRoot(java.lang.String analyseRoot)
Set the output directory Dependency Tool will use to write files into. This directory will be created in function of the root file that has been specified for analysis.

Parameters:
analyseRoot - a String value

getOutputDir

public static java.io.File getOutputDir()
                                 throws java.lang.SecurityException
Get the the output directory. The Dependency Tool uses this dir to write reports and to save graphs.

Returns:
a File value
Throws:
java.lang.SecurityException - if an error occurs

getTempDir

public static java.io.File getTempDir()
Create a temporary directory which will be used for unzipping jars.

Returns:
a File value

deleteTempDir

public static void deleteTempDir()


Copyright © 2003 ELCA Informatique SA. All Rights Reserved.