OKMUtils  2.0
OpenKM Utilities
com.openkm.util.FileUtil Class Reference

Static Public Member Functions

static byte[] readFile (string filePath)
 
static String dumpFile (byte[] data)
 
static void dumpFile (byte[] data, String localFileName)
 
static bool IsDirectorySimple (string path)
 
static bool IsDirectory (string path)
 
static bool IsValidPathString (string pathStringToTest, out string reasonForError)
 
static bool PathContainsInvalidCharacters (string path)
 
static bool FilenameContainsInvalidCharacters (string filename)
 
static String getXMLConfigFileLocalPath ()
 
static String getXMLDocumentFileLocalPath ()
 
static bool isDocumentValidToOpenWithMSWord (String docPath)
 
static bool isDocumentValidToOpenWithMSExcel (String docPath)
 
static bool isDocumentValidToOpenWithMSPowerPoint (String docPath)
 
static bool isDocumentValidToOpenWithMSVisio (String docPath)
 
static String getFileExtension (String docPath)
 
static String getFilenameWithoutCollision (String docPath)
 

Member Function Documentation

static String com.openkm.util.FileUtil.dumpFile ( byte[]  data)
static
static void com.openkm.util.FileUtil.dumpFile ( byte[]  data,
String  localFileName 
)
static
static bool com.openkm.util.FileUtil.FilenameContainsInvalidCharacters ( string  filename)
static
static String com.openkm.util.FileUtil.getFileExtension ( String  docPath)
static
static String com.openkm.util.FileUtil.getFilenameWithoutCollision ( String  docPath)
static
static String com.openkm.util.FileUtil.getXMLConfigFileLocalPath ( )
static
static String com.openkm.util.FileUtil.getXMLDocumentFileLocalPath ( )
static
static bool com.openkm.util.FileUtil.IsDirectory ( string  path)
static
static bool com.openkm.util.FileUtil.IsDirectorySimple ( string  path)
static
static bool com.openkm.util.FileUtil.isDocumentValidToOpenWithMSExcel ( String  docPath)
static
static bool com.openkm.util.FileUtil.isDocumentValidToOpenWithMSPowerPoint ( String  docPath)
static
static bool com.openkm.util.FileUtil.isDocumentValidToOpenWithMSVisio ( String  docPath)
static
static bool com.openkm.util.FileUtil.isDocumentValidToOpenWithMSWord ( String  docPath)
static
static bool com.openkm.util.FileUtil.IsValidPathString ( string  pathStringToTest,
out string  reasonForError 
)
static
static bool com.openkm.util.FileUtil.PathContainsInvalidCharacters ( string  path)
static
static byte [] com.openkm.util.FileUtil.readFile ( string  filePath)
static

The documentation for this class was generated from the following file: