Class SVNFileUtil
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc.SVNFileUtil
-
public class SVNFileUtil extends java.lang.Object- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringATTRIB_COMMANDstatic java.lang.StringBINARY_MIME_TYPEprivate static java.lang.StringCHMOD_COMMANDstatic java.io.InputStreamDUMMY_INstatic java.io.OutputStreamDUMMY_OUTprivate static java.lang.StringENV_COMMANDstatic intFILE_CREATION_ATTEMPTS_COUNTprivate static java.lang.StringID_COMMANDstatic booleanis32Bitstatic booleanis64Bitstatic booleanisBSDstatic booleanisLinuxstatic booleanisOpenVMSstatic booleanisOS2static booleanisOSXstatic booleanisSolarisstatic booleanisWindowsprivate static java.lang.Class<?>java7BasciFileAttributesClazzprivate static java.lang.Class<?>java7FileTimeClazzprivate static java.lang.reflect.Methodjava7fromTimeMethodprivate static java.lang.reflect.Methodjava7lastModifiedTimeMethodprivate static java.lang.Objectjava7noFollowLinksParamprivate static java.lang.reflect.Methodjava7readAttributesMethodprivate static java.lang.reflect.Methodjava7setLastModifiedTimeMethodprivate static java.lang.reflect.Methodjava7toPathMethodprivate static java.lang.reflect.Methodjava7toTimeMethodprivate static java.lang.StringLN_COMMANDstatic booleanlogNativeCallsstatic java.lang.StringLS_COMMANDprivate static java.lang.StringnativeEOLMarkerprivate static java.lang.StringourAdminDirectoryNameprivate static java.io.FileourAppDataPathprivate static booleanourCopyOnSetWritableprivate static java.lang.StringourGroupIDprivate static booleanourIsSleepForTimeStampprivate static java.lang.reflect.MethodourSetExecutableMethodprivate static java.lang.reflect.MethodourSetWritableMethodprivate static java.io.FileourSystemAppDataPathprivate static java.lang.StringourTestEditorprivate static java.lang.StringourTestFunctionprivate static java.lang.StringourTestMergeToolprivate static booleanourUseNIOCopyingprivate static java.lang.StringourUserIDprivate static booleanourUseUnsafeCopyOnlyprivate static java.lang.StringSTAT_COMMANDstatic intSTREAM_CHUNK_SIZE
-
Constructor Summary
Constructors Constructor Description SVNFileUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcloseFile(java.io.InputStream is)static voidcloseFile(java.io.OutputStream os)static voidcloseFile(java.io.RandomAccessFile raf)static voidcloseFile(java.io.Reader is)static voidcloseFile(java.io.Writer os)static voidcloseFile(ISVNInputFile inFile)static booleancompare(java.io.InputStream is, java.io.InputStream old)static booleancompareFiles(java.io.File f1, java.io.File f2, java.security.MessageDigest digest)static java.lang.StringcomputeChecksum(java.io.File file)static java.lang.StringcomputeChecksum(java.lang.String line)static voidcopy(java.io.File src, java.io.File dst, boolean safe, boolean copyAdminDirectories)static voidcopyDirectory(java.io.File srcDir, java.io.File dstDir, boolean copyAdminDir, ISVNEventHandler cancel)static voidcopyFile(java.io.File src, java.io.File dst, boolean safe)static voidcopyFile(java.io.File src, java.io.File dst, boolean safe, boolean keepTimestamp)static voidcopySymlink(java.io.File source, java.io.File target)static voidcreateEmptyFile(java.io.File file)static voidcreateFile(java.io.File file, java.lang.String contents, java.lang.String charSet)An internal method for ASCII bytes to write only!static java.io.FileInputStreamcreateFileInputStream(java.io.File file)static java.io.FileOutputStreamcreateFileOutputStream(java.io.File file, boolean append)static java.io.FilecreateFilePath(java.io.File parent, java.io.File child)static java.io.FilecreateFilePath(java.io.File parent, java.lang.String child)static java.io.FilecreateFilePath(java.lang.String path)static java.io.FilecreateFilePath(java.lang.String parent, java.lang.String child)static booleancreateNewFile(java.io.File file)static booleancreateSymlink(java.io.File link, java.io.File linkName)static booleancreateSymlink(java.io.File link, java.lang.String linkName)static java.io.FilecreateTempDirectory(java.lang.String name)static java.io.FilecreateTempFile(java.lang.String prefix, java.lang.String suffix)static java.io.FilecreateUniqueDir(java.io.File parent, java.lang.String name, java.lang.String suffix, boolean useUUIDGenerator)static java.io.FilecreateUniqueFile(java.io.File parent, java.lang.String name, java.lang.String suffix, boolean useUUIDGenerator)private static java.lang.Stringdecode(java.nio.charset.CharsetDecoder decoder, byte[] in)static voiddeleteAll(java.io.File dir, boolean deleteDirs)static voiddeleteAll(java.io.File dir, boolean deleteDirs, ISVNCanceller cancelBaton)static voiddeleteAll(java.io.File dir, ISVNEventHandler cancelBaton)static booleandeleteFile(java.io.File file)static java.lang.StringdetectMimeType(java.io.File file, java.util.Map<java.lang.String,java.lang.String> mimeTypes)static java.lang.StringdetectMimeType(java.io.InputStream is)static booleandetranslateSymlink(java.io.File src, java.io.File linkFile)static java.io.FileensureDirectoryExists(java.io.File path)static java.lang.StringexecCommand(java.lang.String[] commandLine)static java.lang.StringexecCommand(java.lang.String[] commandLine, boolean waitAfterRead, ISVNReturnValueCallback callback)static java.lang.StringexecCommand(java.lang.String[] commandLine, java.lang.String[] env, boolean waitAfterRead, ISVNReturnValueCallback callback)static byte[]fromHexDigest(java.lang.String hexDigest)static java.lang.StringgetAdminDirectoryName()static java.io.FilegetApplicationDataPath()static java.lang.StringgetAttribCommand()static java.lang.StringgetBasePath(java.io.File file)static java.lang.StringgetChmodCommand()static java.lang.StringgetCurrentGroup()static java.lang.StringgetCurrentUser()static java.lang.StringgetEnvCommand()static java.util.PropertiesgetEnvironment()static java.lang.StringgetEnvironmentVariable(java.lang.String name)static java.io.FilegetFileDir(java.io.File file)static java.lang.StringgetFileExtension(java.io.File path)static longgetFileLastModified(java.io.File file)static longgetFileLastModifiedMicros(java.io.File file)static longgetFileLength(java.io.File file)static java.lang.StringgetFileName(java.io.File file)static java.lang.StringgetFileNameExtension(java.lang.String name)static java.lang.StringgetFilePath(java.io.File file)static java.lang.StringgetIdCommand()static java.lang.StringgetLnCommand()static java.lang.StringgetLsCommand()static java.lang.StringgetNativeEOLMarker(ISVNOptions options)static java.io.FilegetParentFile(java.io.File file)static java.lang.StringgetStatCommand()static java.lang.StringgetSymlinkName(java.io.File link)static java.io.FilegetSystemApplicationDataPath()static java.io.FilegetSystemConfigurationDirectory()static java.lang.String[]getTestEnvironment()static booleanisAbsolute(java.io.File path)static booleanisCaseInsensitiveFS()static booleanisExecutable(java.io.File file)private static booleanisHex(char ch)static voidmoveDir(java.io.File src, java.io.File dst)static voidmoveFile(java.io.File src, java.io.File dst)static java.io.InputStreamopenFileForReading(java.io.File file)static java.io.InputStreamopenFileForReading(java.io.File file, java.util.logging.Level logLevel, SVNLogType logType)static java.io.InputStreamopenFileForReading(java.io.File file, SVNLogType logType)static java.io.OutputStreamopenFileForWriting(java.io.File file)static java.io.OutputStreamopenFileForWriting(java.io.File file, boolean append)static java.io.RandomAccessFileopenRAFileForReading(java.io.File file)static java.io.RandomAccessFileopenRAFileForWriting(java.io.File file, boolean append)static java.lang.StringreadFile(java.io.File file)static java.lang.StringreadFile(java.io.InputStream input)static byte[]readFully(java.io.File file)static intreadIntoBuffer(java.io.InputStream is, byte[] buff, int off, int len)static java.lang.StringreadLineFromStream(java.io.InputStream is, java.lang.StringBuffer buffer, java.nio.charset.CharsetDecoder decoder)static java.lang.StringreadSingleLine(java.io.File file)static java.io.InputStreamreadSymlink(java.io.File link)static voidrename(java.io.File src, java.io.File dst)static java.io.FileresolveSymlink(java.io.File file)static java.io.FileresolveSymlinkToFile(java.io.File file)static longroundTimeStamp(long tstamp)static voidsetAdminDirectoryName(java.lang.String name)static voidsetExecutable(java.io.File file, boolean executable)static voidsetFileLastModifiedMicros(java.io.File file, long timeInMicros)static voidsetHidden(java.io.File file, boolean hidden)static booleansetLastModified(java.io.File file, long timestamp)static booleansetReadonly(java.io.File file, boolean readonly)static voidsetSGID(java.io.File dir)static voidsetSleepForTimestamp(boolean sleep)static voidsetTestEnvironment(java.lang.String editor, java.lang.String mergeTool, java.lang.String function)static voidsetUseCopyOnSetWritable(boolean useCopyOnSetWritable)static voidsetUseNIOCopying(boolean useNIOCopy)static voidsetUseUnsafeCopyOnly(boolean useUnsafeCopyOnly)static java.io.FileskipAncestor(java.io.File parent, java.io.File child)static voidsleepForTimestamp()static booleansymlinksSupported()static java.lang.StringtoHexDigest(byte[] digest)static java.lang.StringtoHexDigest(java.security.MessageDigest digest)static voidtruncate(java.io.File file, long truncateToSize)static booleanuseCopyOnSetWritable()static booleanuseNIOCopying()static booleanuseUnsafeCopyOnly()static voidwriteToFile(java.io.File file, byte[] contents)static voidwriteToFile(java.io.File file, java.lang.String contents, java.lang.String charSet)static voidwriteVersionFile(java.io.File file, int version)
-
-
-
Field Detail
-
ID_COMMAND
private static final java.lang.String ID_COMMAND
-
LN_COMMAND
private static final java.lang.String LN_COMMAND
-
LS_COMMAND
public static final java.lang.String LS_COMMAND
-
CHMOD_COMMAND
private static final java.lang.String CHMOD_COMMAND
-
ATTRIB_COMMAND
private static final java.lang.String ATTRIB_COMMAND
-
ENV_COMMAND
private static final java.lang.String ENV_COMMAND
-
STAT_COMMAND
private static final java.lang.String STAT_COMMAND
-
logNativeCalls
public static final boolean logNativeCalls
-
isWindows
public static final boolean isWindows
-
isOS2
public static final boolean isOS2
-
isOSX
public static final boolean isOSX
-
isBSD
public static final boolean isBSD
-
isLinux
public static boolean isLinux
-
isSolaris
public static final boolean isSolaris
-
isOpenVMS
public static final boolean isOpenVMS
-
is32Bit
public static final boolean is32Bit
-
is64Bit
public static final boolean is64Bit
-
STREAM_CHUNK_SIZE
public static final int STREAM_CHUNK_SIZE
- See Also:
- Constant Field Values
-
FILE_CREATION_ATTEMPTS_COUNT
public static final int FILE_CREATION_ATTEMPTS_COUNT
-
DUMMY_OUT
public static final java.io.OutputStream DUMMY_OUT
-
DUMMY_IN
public static final java.io.InputStream DUMMY_IN
-
ourUseUnsafeCopyOnly
private static boolean ourUseUnsafeCopyOnly
-
ourCopyOnSetWritable
private static boolean ourCopyOnSetWritable
-
ourUseNIOCopying
private static boolean ourUseNIOCopying
-
nativeEOLMarker
private static java.lang.String nativeEOLMarker
-
ourGroupID
private static java.lang.String ourGroupID
-
ourUserID
private static java.lang.String ourUserID
-
ourAppDataPath
private static java.io.File ourAppDataPath
-
ourAdminDirectoryName
private static java.lang.String ourAdminDirectoryName
-
ourSystemAppDataPath
private static java.io.File ourSystemAppDataPath
-
ourSetWritableMethod
private static java.lang.reflect.Method ourSetWritableMethod
-
ourSetExecutableMethod
private static java.lang.reflect.Method ourSetExecutableMethod
-
ourIsSleepForTimeStamp
private static volatile boolean ourIsSleepForTimeStamp
-
BINARY_MIME_TYPE
public static final java.lang.String BINARY_MIME_TYPE
- See Also:
- Constant Field Values
-
ourTestEditor
private static java.lang.String ourTestEditor
-
ourTestMergeTool
private static java.lang.String ourTestMergeTool
-
ourTestFunction
private static java.lang.String ourTestFunction
-
java7readAttributesMethod
private static java.lang.reflect.Method java7readAttributesMethod
-
java7toPathMethod
private static java.lang.reflect.Method java7toPathMethod
-
java7lastModifiedTimeMethod
private static java.lang.reflect.Method java7lastModifiedTimeMethod
-
java7setLastModifiedTimeMethod
private static java.lang.reflect.Method java7setLastModifiedTimeMethod
-
java7toTimeMethod
private static java.lang.reflect.Method java7toTimeMethod
-
java7fromTimeMethod
private static java.lang.reflect.Method java7fromTimeMethod
-
java7BasciFileAttributesClazz
private static java.lang.Class<?> java7BasciFileAttributesClazz
-
java7FileTimeClazz
private static java.lang.Class<?> java7FileTimeClazz
-
java7noFollowLinksParam
private static java.lang.Object java7noFollowLinksParam
-
-
Method Detail
-
isCaseInsensitiveFS
public static boolean isCaseInsensitiveFS()
-
useUnsafeCopyOnly
public static boolean useUnsafeCopyOnly()
-
setUseUnsafeCopyOnly
public static void setUseUnsafeCopyOnly(boolean useUnsafeCopyOnly)
-
useCopyOnSetWritable
public static boolean useCopyOnSetWritable()
-
setUseCopyOnSetWritable
public static void setUseCopyOnSetWritable(boolean useCopyOnSetWritable)
-
useNIOCopying
public static boolean useNIOCopying()
-
setUseNIOCopying
public static void setUseNIOCopying(boolean useNIOCopy)
-
getIdCommand
public static java.lang.String getIdCommand()
-
getLnCommand
public static java.lang.String getLnCommand()
-
getLsCommand
public static java.lang.String getLsCommand()
-
getChmodCommand
public static java.lang.String getChmodCommand()
-
getAttribCommand
public static java.lang.String getAttribCommand()
-
getEnvCommand
public static java.lang.String getEnvCommand()
-
getStatCommand
public static java.lang.String getStatCommand()
-
getParentFile
public static java.io.File getParentFile(java.io.File file)
-
readFully
public static byte[] readFully(java.io.File file) throws SVNException- Throws:
SVNException
-
readFile
public static java.lang.String readFile(java.io.File file) throws SVNException- Throws:
SVNException
-
readFile
public static java.lang.String readFile(java.io.InputStream input) throws java.io.IOException- Throws:
java.io.IOException
-
readIntoBuffer
public static int readIntoBuffer(java.io.InputStream is, byte[] buff, int off, int len) throws java.io.IOException- Throws:
java.io.IOException
-
getBasePath
public static java.lang.String getBasePath(java.io.File file)
-
createEmptyFile
public static void createEmptyFile(java.io.File file) throws SVNException- Throws:
SVNException
-
createNewFile
public static boolean createNewFile(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
createFile
public static void createFile(java.io.File file, java.lang.String contents, java.lang.String charSet) throws SVNExceptionAn internal method for ASCII bytes to write only!- Parameters:
file-contents-- Throws:
SVNException
-
writeToFile
public static void writeToFile(java.io.File file, java.lang.String contents, java.lang.String charSet) throws SVNException- Throws:
SVNException
-
writeToFile
public static void writeToFile(java.io.File file, byte[] contents) throws SVNException- Throws:
SVNException
-
writeVersionFile
public static void writeVersionFile(java.io.File file, int version) throws SVNException- Throws:
SVNException
-
createUniqueFile
public static java.io.File createUniqueFile(java.io.File parent, java.lang.String name, java.lang.String suffix, boolean useUUIDGenerator) throws SVNException- Throws:
SVNException
-
createUniqueDir
public static java.io.File createUniqueDir(java.io.File parent, java.lang.String name, java.lang.String suffix, boolean useUUIDGenerator) throws SVNException- Throws:
SVNException
-
moveFile
public static void moveFile(java.io.File src, java.io.File dst) throws SVNException- Throws:
SVNException
-
moveDir
public static void moveDir(java.io.File src, java.io.File dst) throws SVNException- Throws:
SVNException
-
rename
public static void rename(java.io.File src, java.io.File dst) throws SVNException- Throws:
SVNException
-
setReadonly
public static boolean setReadonly(java.io.File file, boolean readonly)
-
setExecutable
public static void setExecutable(java.io.File file, boolean executable)
-
symlinksSupported
public static boolean symlinksSupported()
-
setSGID
public static void setSGID(java.io.File dir)
-
resolveSymlinkToFile
public static java.io.File resolveSymlinkToFile(java.io.File file)
-
resolveSymlink
public static java.io.File resolveSymlink(java.io.File file)
-
copy
public static void copy(java.io.File src, java.io.File dst, boolean safe, boolean copyAdminDirectories) throws SVNException- Throws:
SVNException
-
copyFile
public static void copyFile(java.io.File src, java.io.File dst, boolean safe) throws SVNException- Throws:
SVNException
-
copyFile
public static void copyFile(java.io.File src, java.io.File dst, boolean safe, boolean keepTimestamp) throws SVNException- Throws:
SVNException
-
setLastModified
public static boolean setLastModified(java.io.File file, long timestamp)
-
createSymlink
public static boolean createSymlink(java.io.File link, java.io.File linkName) throws SVNException- Throws:
SVNException
-
createSymlink
public static boolean createSymlink(java.io.File link, java.lang.String linkName)
-
detranslateSymlink
public static boolean detranslateSymlink(java.io.File src, java.io.File linkFile) throws SVNException- Throws:
SVNException
-
getSymlinkName
public static java.lang.String getSymlinkName(java.io.File link)
-
copySymlink
public static void copySymlink(java.io.File source, java.io.File target) throws SVNException- Throws:
SVNException
-
computeChecksum
public static java.lang.String computeChecksum(java.lang.String line)
-
computeChecksum
public static java.lang.String computeChecksum(java.io.File file) throws SVNException- Throws:
SVNException
-
compareFiles
public static boolean compareFiles(java.io.File f1, java.io.File f2, java.security.MessageDigest digest) throws SVNException- Throws:
SVNException
-
truncate
public static void truncate(java.io.File file, long truncateToSize) throws java.io.IOException- Throws:
java.io.IOException
-
setHidden
public static void setHidden(java.io.File file, boolean hidden)
-
deleteAll
public static void deleteAll(java.io.File dir, ISVNEventHandler cancelBaton) throws SVNException- Throws:
SVNException
-
deleteAll
public static void deleteAll(java.io.File dir, boolean deleteDirs)
-
deleteAll
public static void deleteAll(java.io.File dir, boolean deleteDirs, ISVNCanceller cancelBaton) throws SVNException- Throws:
SVNException
-
deleteFile
public static boolean deleteFile(java.io.File file) throws SVNException- Throws:
SVNException
-
toHexDigest
public static java.lang.String toHexDigest(java.security.MessageDigest digest)
-
toHexDigest
public static java.lang.String toHexDigest(byte[] digest)
-
fromHexDigest
public static byte[] fromHexDigest(java.lang.String hexDigest)
-
getNativeEOLMarker
public static java.lang.String getNativeEOLMarker(ISVNOptions options)
-
roundTimeStamp
public static long roundTimeStamp(long tstamp)
-
sleepForTimestamp
public static void sleepForTimestamp()
-
setSleepForTimestamp
public static void setSleepForTimestamp(boolean sleep)
-
readLineFromStream
public static java.lang.String readLineFromStream(java.io.InputStream is, java.lang.StringBuffer buffer, java.nio.charset.CharsetDecoder decoder) throws java.io.IOException- Throws:
java.io.IOException
-
detectMimeType
public static java.lang.String detectMimeType(java.io.InputStream is) throws java.io.IOException- Throws:
java.io.IOException
-
detectMimeType
public static java.lang.String detectMimeType(java.io.File file, java.util.Map<java.lang.String,java.lang.String> mimeTypes) throws SVNException- Throws:
SVNException
-
isExecutable
public static boolean isExecutable(java.io.File file) throws SVNException- Throws:
SVNException
-
ensureDirectoryExists
public static java.io.File ensureDirectoryExists(java.io.File path) throws SVNException- Throws:
SVNException
-
copyDirectory
public static void copyDirectory(java.io.File srcDir, java.io.File dstDir, boolean copyAdminDir, ISVNEventHandler cancel) throws SVNException- Throws:
SVNException
-
openFileForWriting
public static java.io.OutputStream openFileForWriting(java.io.File file) throws SVNException- Throws:
SVNException
-
openFileForWriting
public static java.io.OutputStream openFileForWriting(java.io.File file, boolean append) throws SVNException- Throws:
SVNException
-
createFileOutputStream
public static java.io.FileOutputStream createFileOutputStream(java.io.File file, boolean append) throws java.io.IOException- Throws:
java.io.IOException
-
openRAFileForWriting
public static java.io.RandomAccessFile openRAFileForWriting(java.io.File file, boolean append) throws SVNException- Throws:
SVNException
-
openFileForReading
public static java.io.InputStream openFileForReading(java.io.File file) throws SVNException- Throws:
SVNException
-
openFileForReading
public static java.io.InputStream openFileForReading(java.io.File file, SVNLogType logType) throws SVNException- Throws:
SVNException
-
openFileForReading
public static java.io.InputStream openFileForReading(java.io.File file, java.util.logging.Level logLevel, SVNLogType logType) throws SVNException- Throws:
SVNException
-
createFileInputStream
public static java.io.FileInputStream createFileInputStream(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
openRAFileForReading
public static java.io.RandomAccessFile openRAFileForReading(java.io.File file) throws SVNException- Throws:
SVNException
-
closeFile
public static void closeFile(java.io.InputStream is)
-
closeFile
public static void closeFile(ISVNInputFile inFile)
-
closeFile
public static void closeFile(java.io.OutputStream os)
-
closeFile
public static void closeFile(java.io.RandomAccessFile raf)
-
execCommand
public static java.lang.String execCommand(java.lang.String[] commandLine) throws SVNException- Throws:
SVNException
-
execCommand
public static java.lang.String execCommand(java.lang.String[] commandLine, boolean waitAfterRead, ISVNReturnValueCallback callback) throws SVNException- Throws:
SVNException
-
execCommand
public static java.lang.String execCommand(java.lang.String[] commandLine, java.lang.String[] env, boolean waitAfterRead, ISVNReturnValueCallback callback) throws SVNException- Throws:
SVNException
-
closeFile
public static void closeFile(java.io.Writer os)
-
closeFile
public static void closeFile(java.io.Reader is)
-
getAdminDirectoryName
public static java.lang.String getAdminDirectoryName()
-
setAdminDirectoryName
public static void setAdminDirectoryName(java.lang.String name)
-
getApplicationDataPath
public static java.io.File getApplicationDataPath()
-
getSystemApplicationDataPath
public static java.io.File getSystemApplicationDataPath()
-
getEnvironmentVariable
public static java.lang.String getEnvironmentVariable(java.lang.String name)
-
setTestEnvironment
public static void setTestEnvironment(java.lang.String editor, java.lang.String mergeTool, java.lang.String function)
-
getTestEnvironment
public static java.lang.String[] getTestEnvironment()
-
getEnvironment
public static java.util.Properties getEnvironment() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
createTempDirectory
public static java.io.File createTempDirectory(java.lang.String name) throws SVNException- Throws:
SVNException
-
createTempFile
public static java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix) throws SVNException- Throws:
SVNException
-
getSystemConfigurationDirectory
public static java.io.File getSystemConfigurationDirectory()
-
readSingleLine
public static java.lang.String readSingleLine(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
decode
private static java.lang.String decode(java.nio.charset.CharsetDecoder decoder, byte[] in)
-
getCurrentUser
public static java.lang.String getCurrentUser() throws SVNException- Throws:
SVNException
-
getCurrentGroup
public static java.lang.String getCurrentGroup() throws SVNException- Throws:
SVNException
-
isHex
private static boolean isHex(char ch)
-
isAbsolute
public static boolean isAbsolute(java.io.File path)
-
getFilePath
public static java.lang.String getFilePath(java.io.File file)
-
getFileName
public static java.lang.String getFileName(java.io.File file)
-
getFileDir
public static java.io.File getFileDir(java.io.File file)
-
createFilePath
public static java.io.File createFilePath(java.lang.String path)
-
createFilePath
public static java.io.File createFilePath(java.io.File parent, java.io.File child)
-
createFilePath
public static java.io.File createFilePath(java.io.File parent, java.lang.String child)
-
createFilePath
public static java.io.File createFilePath(java.lang.String parent, java.lang.String child)
-
skipAncestor
public static java.io.File skipAncestor(java.io.File parent, java.io.File child)
-
getFileExtension
public static java.lang.String getFileExtension(java.io.File path)
-
getFileNameExtension
public static java.lang.String getFileNameExtension(java.lang.String name)
-
compare
public static boolean compare(java.io.InputStream is, java.io.InputStream old)
-
readSymlink
public static java.io.InputStream readSymlink(java.io.File link) throws SVNException- Throws:
SVNException
-
getFileLength
public static long getFileLength(java.io.File file)
-
getFileLastModified
public static long getFileLastModified(java.io.File file)
-
setFileLastModifiedMicros
public static void setFileLastModifiedMicros(java.io.File file, long timeInMicros)
-
getFileLastModifiedMicros
public static long getFileLastModifiedMicros(java.io.File file)
-
-