org.gcube.contentmanagement.lexicalmatcher.utils
Class FileTools

java.lang.Object
  extended by org.gcube.contentmanagement.lexicalmatcher.utils.FileTools

public class FileTools
extends Object


Constructor Summary
FileTools()
           
 
Method Summary
static boolean checkInput(String filename)
           
static boolean checkOutput(String filename, boolean overwrite)
           
static String loadString(String filename, String encoding)
           
static String readXMLDoc(String xmlFilePath)
           
static void saveString(String filename, String s, boolean overwrite, String encoding)
           
static void saveString2File(String filename, String string2save)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTools

public FileTools()
Method Detail

readXMLDoc

public static String readXMLDoc(String xmlFilePath)
                         throws Exception
Throws:
Exception

saveString2File

public static void saveString2File(String filename,
                                   String string2save)
                            throws Exception
Throws:
Exception

checkInput

public static boolean checkInput(String filename)

checkOutput

public static boolean checkOutput(String filename,
                                  boolean overwrite)

loadString

public static String loadString(String filename,
                                String encoding)
                         throws Exception
Throws:
Exception

saveString

public static void saveString(String filename,
                              String s,
                              boolean overwrite,
                              String encoding)
                       throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.