org.gcube.contentmanagement.lexicalmatcher.utils
Class FileTools
java.lang.Object
org.gcube.contentmanagement.lexicalmatcher.utils.FileTools
public class FileTools
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileTools
public FileTools()
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.