jodd.io
Class FileEx
java.lang.Object
java.io.File
jodd.io.FileEx
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<java.io.File>
public class FileEx
- extends java.io.File
Extended File object that adapts FileUtil
s.
- See Also:
- Serialized Form
Fields inherited from class java.io.File |
pathSeparator, pathSeparatorChar, separator, separatorChar |
Constructor Summary |
FileEx(java.io.File parent,
java.lang.String child)
|
FileEx(java.lang.String pathname)
|
FileEx(java.lang.String parent,
java.lang.String child)
|
FileEx(java.net.URI uri)
|
Methods inherited from class java.io.File |
canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
settings
protected FileUtil.Settings settings
FileEx
public FileEx(java.lang.String pathname)
FileEx
public FileEx(java.lang.String parent,
java.lang.String child)
FileEx
public FileEx(java.io.File parent,
java.lang.String child)
FileEx
public FileEx(java.net.URI uri)
setPreserveDate
public void setPreserveDate(boolean value)
isPreserveDate
public boolean isPreserveDate()
setOverwriteExisting
public void setOverwriteExisting(boolean value)
isOverwriteExisting
public boolean isOverwriteExisting()
setCreateDirs
public void setCreateDirs(boolean value)
isCreateDirs
public boolean isCreateDirs()
setRecursive
public void setRecursive(boolean value)
isRecursive
public boolean isRecursive()
isContinueOnError
public boolean isContinueOnError()
setContinueOnError
public void setContinueOnError(boolean continueOnError)
getEncoding
public java.lang.String getEncoding()
setEncoding
public void setEncoding(java.lang.String encoding)
touch
public void touch()
throws java.io.IOException
- Throws:
java.io.IOException
copyFile
public void copyFile(java.io.File dest)
throws java.io.IOException
- Throws:
java.io.IOException
copyToDir
public void copyToDir(java.io.File dest)
throws java.io.IOException
- Throws:
java.io.IOException
copyDir
public void copyDir(java.io.File dest)
throws java.io.IOException
- Throws:
java.io.IOException
moveFile
public void moveFile(java.io.File dest)
throws java.io.IOException
- Throws:
java.io.IOException
moveToDir
public void moveToDir(java.io.File dest)
throws java.io.IOException
- Throws:
java.io.IOException
moveDir
public void moveDir(java.io.File dest)
throws java.io.IOException
- Throws:
java.io.IOException
deleteFile
public void deleteFile()
throws java.io.IOException
- Throws:
java.io.IOException
deleteDir
public void deleteDir()
throws java.io.IOException
- Throws:
java.io.IOException
cleanDir
public void cleanDir()
throws java.io.IOException
- Throws:
java.io.IOException
readString
public java.lang.String readString()
throws java.io.IOException
- Throws:
java.io.IOException
readString
public java.lang.String readString(java.lang.String encoding)
throws java.io.IOException
- Throws:
java.io.IOException
writeString
public void writeString(java.lang.String data)
throws java.io.IOException
- Throws:
java.io.IOException
writeString
public void writeString(java.lang.String data,
java.lang.String encoding)
throws java.io.IOException
- Throws:
java.io.IOException
readBytes
public byte[] readBytes()
throws java.io.IOException
- Throws:
java.io.IOException
writeBytes
public void writeBytes(byte[] data)
throws java.io.IOException
- Throws:
java.io.IOException
compare
public boolean compare(java.io.File dest)
throws java.io.IOException
- Throws:
java.io.IOException
isNewer
public boolean isNewer(java.io.File reference)
isNewer
public boolean isNewer(long timeMillis)
isOlder
public boolean isOlder(java.io.File reference)
isOlder
public boolean isOlder(long timeMillis)
copy
public void copy(java.io.File dest)
throws java.io.IOException
- Throws:
java.io.IOException
move
public void move(java.io.File dest)
throws java.io.IOException
- Throws:
java.io.IOException
delete
public void delete(java.io.File dest)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright ©2008 Jodd Team