Package de.srsoftware.tools.files
Class FileTools
- java.lang.Object
-
- de.srsoftware.tools.files.FileTools
-
public class FileTools extends Object
-
-
Constructor Summary
Constructors Constructor Description FileTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreateDirectory(String fname)static StringdeleteNonFilenameChars(String string)static booleanfileExists(URL fileUrl)static StringgetFileString(URL url, boolean breakLines)Tries to read the file denoted by the given URL into a stringstatic booleanisFreeMindFile(URL fileUrl)static booleanisIntelliMindFile(URL fileUrl)static booleanisKeggUrl(URL fileUrl)static booleanisLocal(URL fileUrl)static FilesearchFiles(String path, String... names)
-
-
-
Method Detail
-
createDirectory
public static void createDirectory(String fname)
-
fileExists
public static boolean fileExists(URL fileUrl)
-
getFileString
public static String getFileString(URL url, boolean breakLines) throws IOException
Tries to read the file denoted by the given URL into a string- Parameters:
url- the url to be read frombreakLines-- Returns:
- the content of the document specified through url
- Throws:
IOException- if connection cannot be established
-
isFreeMindFile
public static boolean isFreeMindFile(URL fileUrl)
-
isIntelliMindFile
public static boolean isIntelliMindFile(URL fileUrl)
-
isKeggUrl
public static boolean isKeggUrl(URL fileUrl)
-
isLocal
public static boolean isLocal(URL fileUrl)
-
-