SecurePlayLibray J2SE
v2.1

com.SecurePlay
Class SPUReportToFile

java.lang.Object
  extended bycom.SecurePlay.SPUReportToFile

public class SPUReportToFile
extends java.lang.Object

A class used for outputting test cases into files.

Author:
IT GlobalSecure
See Also:
SecurePlay License Information
 

Field Summary
(package private)  java.lang.String extendedversion
          Developer extended version.
(package private)  java.lang.String filename
          The file name to which the outputis outputted.
(package private)  java.io.PrintWriter fileOut
          The stream used to output.
(package private) static java.lang.String parentPath
           
(package private)  java.lang.String releaseversion
          IT GlobalSecure release version.
 
Constructor Summary
SPUReportToFile()
          Default constructor.
 
Method Summary
 void addLine(java.lang.String str)
          This method adds a string line to the file.
 void addOutput(SPMap map)
          This method adds a Vector of strings to the file line by line.
 void addOutput(java.lang.String[] v)
          This method adds a String array to the file element by element.
 void addOutput(java.util.Vector v)
          This method adds a Vector of strings to the file line by line.
 void closeFile()
          This method closes the stream opened for output.
static boolean CreateMainDir(java.lang.String dir)
           
 void openFile(java.lang.String str)
          This method opens a specified file for output.
 void openFile(java.lang.String str, java.lang.String dirpath)
          This method opens a specified file for output, in the specified directory.
static boolean StringArrToFile(java.lang.String[] sa, java.lang.String filename, java.lang.String fileExtension)
          This method creates a the specified file with the string array and with the specified exxtension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extendedversion

final java.lang.String extendedversion
Developer extended version.

See Also:
Constant Field Values

releaseversion

final java.lang.String releaseversion
IT GlobalSecure release version.

See Also:
Constant Field Values

filename

java.lang.String filename
The file name to which the outputis outputted.


fileOut

java.io.PrintWriter fileOut
The stream used to output.


parentPath

static java.lang.String parentPath
Constructor Detail

SPUReportToFile

public SPUReportToFile()
Default constructor.

Method Detail

openFile

public void openFile(java.lang.String str)
This method opens a specified file for output. The directory is set to default.

Parameters:
str - String - specified file name to be opened for output.

openFile

public void openFile(java.lang.String str,
                     java.lang.String dirpath)
This method opens a specified file for output, in the specified directory.

Parameters:
str - String - specified file name to be opened for output.
dirpath - String - directory name for files to be written to. void

addLine

public void addLine(java.lang.String str)
This method adds a string line to the file.

Parameters:
str - String - a line to be added.

addOutput

public void addOutput(SPMap map)
This method adds a Vector of strings to the file line by line.

Parameters:
map - SPMap - the vector to be added.
Returns:
void

addOutput

public void addOutput(java.util.Vector v)
This method adds a Vector of strings to the file line by line.

Parameters:
v - Vector - the vector to be added.

addOutput

public void addOutput(java.lang.String[] v)
This method adds a String array to the file element by element.

Parameters:
v - String[] - a string array to be added.

closeFile

public void closeFile()
This method closes the stream opened for output.


StringArrToFile

public static boolean StringArrToFile(java.lang.String[] sa,
                                      java.lang.String filename,
                                      java.lang.String fileExtension)
This method creates a the specified file with the string array and with the specified exxtension.

Parameters:
sa - String[] - string array that will be outputed to the file.
filename - String - file name to which the string array will be outputed.
fileExtension - String - the desired file extenstion.
Returns:
result - Boolean: TRUE, if successful, FALSE, if not.

CreateMainDir

public static boolean CreateMainDir(java.lang.String dir)

SecurePlayLibray J2SE
v2.1

2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.