Class FileUtil
java.lang.Object
org.eclipse.nebula.widgets.xviewer.util.internal.FileUtil
public class FileUtil
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description FileUtil() -
Method Summary
Modifier and Type Method Description static java.lang.StringfileToString(java.io.File file)static java.lang.StringjustFilename(java.lang.String filename)static java.lang.StringjustPath(java.lang.String filename)static java.lang.StringreadFile(java.io.File file)Use the Lib method directly - the original implementation of this method was not memory efficient and suppressed exceptionsstatic java.lang.StringreadFile(java.lang.String filename)Use the Lib method directly - the original implementation of this method was not memory efficient and suppressed exceptionsstatic java.util.List<java.lang.String>readListFromDir(java.io.File directory, java.io.FilenameFilter filter)static voidwriteStringToFile(java.lang.String str, java.io.File file)
-
Constructor Details
-
FileUtil
public FileUtil()
-
-
Method Details
-
justFilename
public static java.lang.String justFilename(java.lang.String filename) -
justPath
public static java.lang.String justPath(java.lang.String filename) -
readFile
Use the Lib method directly - the original implementation of this method was not memory efficient and suppressed exceptions- Throws:
java.io.IOExceptionXViewerException
-
readFile
Use the Lib method directly - the original implementation of this method was not memory efficient and suppressed exceptions- Throws:
java.io.IOExceptionXViewerException
-
fileToString
- Throws:
XViewerException
-
writeStringToFile
public static void writeStringToFile(java.lang.String str, java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
readListFromDir
public static java.util.List<java.lang.String> readListFromDir(java.io.File directory, java.io.FilenameFilter filter)
-