public class SystemUtility
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static short |
DIR_NOTEXISTS |
static short |
DIR_R |
static short |
DIR_RW |
| Constructor and Description |
|---|
SystemUtility() |
| Modifier and Type | Method and Description |
|---|---|
static short |
checkDirectory(java.lang.String dir,
boolean createIfNotExist)
Check (create) a given directory and return rw status.
|
public static final short DIR_NOTEXISTS
public static final short DIR_RW
public static final short DIR_R
public static short checkDirectory(java.lang.String dir,
boolean createIfNotExist)
throws java.io.IOException
-1 not existing, 0=ok and writable, 1=found but not writable
dir - createIfNotExist - java.io.IOException