Package com.biglybt.core.util
Class FileUtil.FileHandlerHack
- java.lang.Object
-
- com.biglybt.core.util.FileHandler
-
- com.biglybt.core.util.FileUtil.FileHandlerHack
-
- Enclosing class:
- FileUtil
public static class FileUtil.FileHandlerHack extends FileHandler
-
-
Constructor Summary
Constructors Constructor Description FileHandlerHack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getCanonicalFileSafe(java.io.File file)
Preserves the case of the file.name when the file exists but differs in casejava.lang.String
getCanonicalPathSafe(java.io.File file)
Preserves the case of the file.name when the file exists but differs in caseboolean
isAncestorOf(java.io.File _parent, java.io.File _child)
Whether child in an ancestor of parent, or child IS parentjava.io.File
newFile(java.io.File parent, java.lang.String... subDirs)
java.io.File
newFile(java.lang.String parent, java.lang.String... subDirs)
FMFileAccess.FileAccessor
newFileAccessor(java.io.File file, java.lang.String access_mode)
-
Methods inherited from class com.biglybt.core.util.FileHandler
containsPathSegment, getRelativePath, newFile, newFileInputStream, newFileOutputStream
-
-
-
-
Method Detail
-
newFile
public java.io.File newFile(java.io.File parent, java.lang.String... subDirs)
- Overrides:
newFile
in classFileHandler
-
newFile
public java.io.File newFile(java.lang.String parent, java.lang.String... subDirs)
- Overrides:
newFile
in classFileHandler
-
getCanonicalFileSafe
public java.io.File getCanonicalFileSafe(java.io.File file)
Description copied from class:FileHandler
Preserves the case of the file.name when the file exists but differs in case- Overrides:
getCanonicalFileSafe
in classFileHandler
-
getCanonicalPathSafe
public java.lang.String getCanonicalPathSafe(java.io.File file)
Description copied from class:FileHandler
Preserves the case of the file.name when the file exists but differs in case- Overrides:
getCanonicalPathSafe
in classFileHandler
-
isAncestorOf
public boolean isAncestorOf(java.io.File _parent, java.io.File _child)
Description copied from class:FileHandler
Whether child in an ancestor of parent, or child IS parent- Overrides:
isAncestorOf
in classFileHandler
-
newFileAccessor
public FMFileAccess.FileAccessor newFileAccessor(java.io.File file, java.lang.String access_mode) throws java.io.FileNotFoundException
- Overrides:
newFileAccessor
in classFileHandler
- Throws:
java.io.FileNotFoundException
-
-