public class RootJavaFile extends JavaFile
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
components |
protected Date |
date |
protected static RootJavaFile |
instance |
protected boolean |
isAbsolute |
protected boolean |
isDirectory |
protected boolean |
isExecutable |
protected boolean |
isExists |
protected boolean |
isFile |
protected boolean |
isReadable |
protected boolean |
isWritable |
protected String |
name |
protected String |
path |
| Modifier | Constructor and Description |
|---|---|
protected |
RootJavaFile() |
| Modifier and Type | Method and Description |
|---|---|
RootJavaFile |
clone() |
int |
compareTo(xyz.cofe.fs.Path path) |
void |
delete() |
void |
delete(xyz.cofe.common.Reciver<xyz.cofe.fs.File> deleted) |
void |
delete(xyz.cofe.common.Reciver<xyz.cofe.fs.File> deleted,
xyz.cofe.fs.VisitOptions opts) |
boolean |
equals(Object obj) |
static RootJavaFile |
get() |
JavaFile |
getAbsolute() |
JavaFile |
getCanonical() |
JavaFile |
getChild(String name) |
String[] |
getComponents() |
File |
getFile() |
long |
getLength() |
Date |
getModifyDate() |
String |
getName() |
JavaFile |
getParent() |
String |
getPath() |
boolean |
isAbsolute() |
boolean |
isDirectory() |
boolean |
isExecutable() |
boolean |
isExists() |
boolean |
isFile() |
boolean |
isReadable() |
boolean |
isRoot() |
boolean |
isWritable() |
List<xyz.cofe.fs.File> |
listFiles() |
void |
mkdir() |
void |
mkdirs() |
BufferedInputStream |
openRead() |
BufferedOutputStream |
openWrite() |
void |
renameTo(xyz.cofe.fs.File file) |
void |
setExecutable(boolean executable) |
void |
setExecutable(boolean executable,
boolean ownerOnly) |
void |
setModifyDate(Date modifyDate) |
void |
setReadable(boolean readable) |
void |
setReadable(boolean readable,
boolean ownerOnly) |
void |
setWritable(boolean writable) |
void |
setWritable(boolean writable,
boolean ownerOnly) |
getFileSystem, hashCode, isOS_Windows, openAppend, openReadWrite, toString, walk, walkappendBytes, appendBytes, appendBytes, appendText, appendText, getFileHelper, readBytes, readBytes, readBytes, readText, readText, readText, writeBytes, writeBytes, writeBytes, writeText, writeTextprotected static RootJavaFile instance
protected Date date
protected boolean isExecutable
protected boolean isWritable
protected boolean isReadable
protected boolean isExists
protected String name
protected String path
protected String[] components
protected boolean isFile
protected boolean isDirectory
protected boolean isAbsolute
public RootJavaFile clone()
public static RootJavaFile get()
public void renameTo(xyz.cofe.fs.File file)
public void mkdirs()
public void mkdir()
public void delete(xyz.cofe.common.Reciver<xyz.cofe.fs.File> deleted,
xyz.cofe.fs.VisitOptions opts)
public void delete(xyz.cofe.common.Reciver<xyz.cofe.fs.File> deleted)
public void delete()
public void setModifyDate(Date modifyDate)
setModifyDate in interface xyz.cofe.fs.FilesetModifyDate in class JavaFilepublic void setExecutable(boolean executable,
boolean ownerOnly)
setExecutable in interface xyz.cofe.fs.FilesetExecutable in class JavaFilepublic void setExecutable(boolean executable)
setExecutable in interface xyz.cofe.fs.FilesetExecutable in class JavaFilepublic boolean isExecutable()
isExecutable in interface xyz.cofe.fs.FileisExecutable in class JavaFilepublic void setWritable(boolean writable,
boolean ownerOnly)
setWritable in interface xyz.cofe.fs.FilesetWritable in class JavaFilepublic void setWritable(boolean writable)
setWritable in interface xyz.cofe.fs.FilesetWritable in class JavaFilepublic boolean isWritable()
isWritable in interface xyz.cofe.fs.FileisWritable in class JavaFilepublic void setReadable(boolean readable,
boolean ownerOnly)
setReadable in interface xyz.cofe.fs.FilesetReadable in class JavaFilepublic void setReadable(boolean readable)
setReadable in interface xyz.cofe.fs.FilesetReadable in class JavaFilepublic boolean isReadable()
isReadable in interface xyz.cofe.fs.FileisReadable in class JavaFilepublic BufferedOutputStream openWrite()
public BufferedInputStream openRead()
public String getPath()
public String getName()
public String[] getComponents()
getComponents in interface xyz.cofe.fs.PathgetComponents in class JavaFilepublic long getLength()
public Date getModifyDate()
getModifyDate in interface xyz.cofe.fs.FilegetModifyDate in class JavaFilepublic List<xyz.cofe.fs.File> listFiles()
public boolean isExists()
public boolean isFile()
public boolean isDirectory()
isDirectory in interface xyz.cofe.fs.FileisDirectory in class JavaFilepublic JavaFile getParent()
public boolean isAbsolute()
isAbsolute in interface xyz.cofe.fs.PathisAbsolute in class JavaFilepublic boolean isRoot()
public JavaFile getAbsolute()
getAbsolute in interface xyz.cofe.fs.FilegetAbsolute in interface xyz.cofe.fs.PathgetAbsolute in class JavaFilepublic JavaFile getCanonical()
getCanonical in interface xyz.cofe.fs.FilegetCanonical in interface xyz.cofe.fs.PathgetCanonical in class JavaFilepublic int compareTo(xyz.cofe.fs.Path path)
compareTo in interface Comparable<xyz.cofe.fs.Path>compareTo in class JavaFileCopyright © 2017. All rights reserved.