public class SVNOS2Util
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.reflect.Method |
moveFileMethod |
private static java.lang.Class<?> |
os2io4jClazz |
private static boolean |
ourIsJNAEnabled |
private static boolean |
ourIsOS2IO4JPresent |
private static java.lang.reflect.Method |
setHiddenMethod |
private static java.lang.reflect.Method |
setReadOnlyMethod |
Constructor and Description |
---|
SVNOS2Util() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isOS2IO4JPresent() |
static boolean |
moveFile(java.io.File src,
java.io.File dst)
atomically renames src to dst and
returns false if there is any error on rename.
|
static boolean |
setHidden(java.io.File file,
boolean hidden)
makes file hidden and
returns true in case operations succeeded, false in case of any error
|
static void |
setJNAEnabled(boolean enabled) |
static boolean |
setWritable(java.io.File file)
makes file writable and
returns true in case operations succeeded, false in case of any error
|
private static boolean ourIsJNAEnabled
private static boolean ourIsOS2IO4JPresent
private static java.lang.Class<?> os2io4jClazz
private static java.lang.reflect.Method setReadOnlyMethod
private static java.lang.reflect.Method setHiddenMethod
private static java.lang.reflect.Method moveFileMethod
public static void setJNAEnabled(boolean enabled)
public static boolean isOS2IO4JPresent()
public static boolean setWritable(java.io.File file)
public static boolean setHidden(java.io.File file, boolean hidden)
public static boolean moveFile(java.io.File src, java.io.File dst)