Class SVNOS2Util
java.lang.Object
org.tmatesoft.svn.core.internal.util.jna.SVNOS2Util
public class SVNOS2Util
extends java.lang.Object
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static java.lang.reflect.Method
private static java.lang.Class<?>
private static boolean
private static boolean
private static java.lang.reflect.Method
private static java.lang.reflect.Method
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
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 errorstatic 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 errorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ourIsJNAEnabled
private static boolean ourIsJNAEnabled -
ourIsOS2IO4JPresent
private static boolean ourIsOS2IO4JPresent -
os2io4jClazz
private static java.lang.Class<?> os2io4jClazz -
setReadOnlyMethod
private static java.lang.reflect.Method setReadOnlyMethod -
setHiddenMethod
private static java.lang.reflect.Method setHiddenMethod -
moveFileMethod
private static java.lang.reflect.Method moveFileMethod
-
-
Constructor Details
-
SVNOS2Util
public SVNOS2Util()
-
-
Method Details
-
setJNAEnabled
public static void setJNAEnabled(boolean enabled) -
isOS2IO4JPresent
public static boolean isOS2IO4JPresent() -
setWritable
public static boolean setWritable(java.io.File file) makes file writable and returns true in case operations succeeded, false in case of any error -
setHidden
public 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 -
moveFile
public 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.
-