Package com.biglybt.core.util
Class FileUtil.FileHack
java.lang.Object
java.io.File
com.biglybt.core.util.FileUtil.FileHack
- All Implemented Interfaces:
Serializable
,Comparable<File>
- Enclosing class:
- FileUtil
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final String
private final String
private final File
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canRead()
boolean
canWrite()
int
boolean
boolean
delete()
void
boolean
boolean
exists()
long
getName()
getPath()
long
long
int
hashCode()
boolean
boolean
boolean
isFile()
boolean
isHidden()
long
long
length()
String[]
list()
String[]
list
(FilenameFilter filter) File[]
File[]
listFiles
(FileFilter filter) File[]
listFiles
(FilenameFilter filter) boolean
mkdir()
boolean
mkdirs()
boolean
boolean
setExecutable
(boolean executable) boolean
setExecutable
(boolean executable, boolean ownerOnly) boolean
setLastModified
(long time) boolean
setReadable
(boolean readable) boolean
setReadable
(boolean readable, boolean ownerOnly) boolean
boolean
setWritable
(boolean writable) boolean
setWritable
(boolean writable, boolean ownerOnly) toPath()
toString()
toURI()
toURL()
Methods inherited from class java.io.File
createTempFile, createTempFile, listRoots
-
Field Details
-
hack_target
- See Also:
-
hack_prefix
- See Also:
-
path
-
target
-
-
Constructor Details
-
FileHack
-
FileHack
-
-
Method Details
-
getHackTarget
-
getAbsoluteFile
- Overrides:
getAbsoluteFile
in classFile
-
getAbsolutePath
- Overrides:
getAbsolutePath
in classFile
-
exists
public boolean exists() -
getName
-
getParent
-
getParentFile
- Overrides:
getParentFile
in classFile
-
getPath
-
isFile
public boolean isFile() -
isDirectory
public boolean isDirectory()- Overrides:
isDirectory
in classFile
-
compareTo
- Specified by:
compareTo
in interfaceComparable<File>
- Overrides:
compareTo
in classFile
-
hashCode
public int hashCode() -
equals
-
createNewFile
- Overrides:
createNewFile
in classFile
- Throws:
IOException
-
delete
public boolean delete() -
getCanonicalFile
- Overrides:
getCanonicalFile
in classFile
- Throws:
IOException
-
getCanonicalPath
- Overrides:
getCanonicalPath
in classFile
- Throws:
IOException
-
lastModified
public long lastModified()- Overrides:
lastModified
in classFile
-
list
-
length
public long length() -
listFiles
-
mkdir
public boolean mkdir() -
mkdirs
public boolean mkdirs() -
toString
-
canExecute
public boolean canExecute()- Overrides:
canExecute
in classFile
-
canRead
public boolean canRead() -
canWrite
public boolean canWrite() -
deleteOnExit
public void deleteOnExit()- Overrides:
deleteOnExit
in classFile
-
getFreeSpace
public long getFreeSpace()- Overrides:
getFreeSpace
in classFile
-
getTotalSpace
public long getTotalSpace()- Overrides:
getTotalSpace
in classFile
-
getUsableSpace
public long getUsableSpace()- Overrides:
getUsableSpace
in classFile
-
isAbsolute
public boolean isAbsolute()- Overrides:
isAbsolute
in classFile
-
isHidden
public boolean isHidden() -
list
-
listFiles
-
listFiles
-
renameTo
-
setExecutable
public boolean setExecutable(boolean executable) - Overrides:
setExecutable
in classFile
-
setExecutable
public boolean setExecutable(boolean executable, boolean ownerOnly) - Overrides:
setExecutable
in classFile
-
setLastModified
public boolean setLastModified(long time) - Overrides:
setLastModified
in classFile
-
setReadable
public boolean setReadable(boolean readable) - Overrides:
setReadable
in classFile
-
setReadable
public boolean setReadable(boolean readable, boolean ownerOnly) - Overrides:
setReadable
in classFile
-
setReadOnly
public boolean setReadOnly()- Overrides:
setReadOnly
in classFile
-
setWritable
public boolean setWritable(boolean writable) - Overrides:
setWritable
in classFile
-
setWritable
public boolean setWritable(boolean writable, boolean ownerOnly) - Overrides:
setWritable
in classFile
-
toPath
-
toURI
-
toURL
- Overrides:
toURL
in classFile
- Throws:
MalformedURLException
-