at.knowcenter.wag.egov.egiz.tools
Class FileHelper

java.lang.Object
  extended by at.knowcenter.wag.egov.egiz.tools.FileHelper

public class FileHelper
extends Object

This class provides file reader and writer methods. All methods are static!

Author:
wlackner

Constructor Summary
FileHelper()
           
 
Method Summary
static String readFromFile(String fileName)
          This method reads a file by reading line by line.
static boolean writeToFile(String fileName, String fileString)
          This method writes a file line by line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHelper

public FileHelper()
Method Detail

readFromFile

public static String readFromFile(String fileName)
This method reads a file by reading line by line.

Parameters:
fileName - the file to be read
Returns:
the content string of the file

writeToFile

public static boolean writeToFile(String fileName,
                                  String fileString)
This method writes a file line by line.

Parameters:
fileName - the file to be written
fileString - the content to be written
Returns:
true if the file could be written sucessfully, false otherwise


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.