public class JavaFile
extends xyz.cofe.fs.AbstractFile
implements xyz.cofe.fs.File
| Modifier | Constructor and Description |
|---|---|
protected |
JavaFile() |
|
JavaFile(File path) |
|
JavaFile(JavaFile src) |
|
JavaFile(String path) |
| Modifier and Type | Method and Description |
|---|---|
JavaFile |
clone() |
int |
compareTo(xyz.cofe.fs.Path o) |
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) |
JavaFile |
getAbsolute() |
JavaFile |
getCanonical() |
JavaFile |
getChild(String name) |
String[] |
getComponents() |
File |
getFile() |
xyz.cofe.fs.FileSystem |
getFileSystem() |
long |
getLength() |
Date |
getModifyDate() |
String |
getName() |
JavaFile |
getParent() |
String |
getPath() |
int |
hashCode() |
boolean |
isAbsolute() |
boolean |
isDirectory() |
boolean |
isExecutable() |
boolean |
isExists() |
boolean |
isFile() |
protected boolean |
isOS_Windows() |
boolean |
isReadable() |
boolean |
isRoot() |
boolean |
isWritable() |
List<xyz.cofe.fs.File> |
listFiles() |
void |
mkdir() |
void |
mkdirs() |
BufferedOutputStream |
openAppend() |
BufferedInputStream |
openRead() |
RandomAccessFile |
openReadWrite(xyz.cofe.fs.OpenMode mode) |
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) |
String |
toString() |
Iterable<xyz.cofe.fs.File> |
walk() |
Iterable<xyz.cofe.fs.File> |
walk(xyz.cofe.fs.VisitOptions opts) |
appendBytes, appendBytes, appendBytes, appendText, appendText, getFileHelper, readBytes, readBytes, readBytes, readText, readText, readText, writeBytes, writeBytes, writeBytes, writeText, writeTextprotected File file
protected JavaFile()
public JavaFile(String path)
public JavaFile(File path)
public JavaFile(JavaFile src)
public JavaFile clone()
clone in interface xyz.cofe.fs.Fileclone in class xyz.cofe.fs.AbstractFilepublic File getFile()
public xyz.cofe.fs.FileSystem getFileSystem()
getFileSystem in interface xyz.cofe.fs.Filepublic JavaFile getCanonical()
getCanonical in interface xyz.cofe.fs.FilegetCanonical in interface xyz.cofe.fs.Pathpublic JavaFile getAbsolute()
getAbsolute in interface xyz.cofe.fs.FilegetAbsolute in interface xyz.cofe.fs.Pathpublic boolean isAbsolute()
isAbsolute in interface xyz.cofe.fs.Pathpublic boolean isRoot()
isRoot in interface xyz.cofe.fs.Pathpublic JavaFile getParent()
getParent in interface xyz.cofe.fs.FilegetParent in interface xyz.cofe.fs.Pathpublic JavaFile getChild(String name)
getChild in interface xyz.cofe.fs.FilegetChild in interface xyz.cofe.fs.Pathpublic boolean isDirectory()
isDirectory in interface xyz.cofe.fs.Filepublic boolean isFile()
isFile in interface xyz.cofe.fs.Filepublic boolean isExists()
isExists in interface xyz.cofe.fs.Filepublic List<xyz.cofe.fs.File> listFiles()
listFiles in interface xyz.cofe.fs.Filepublic Date getModifyDate()
getModifyDate in interface xyz.cofe.fs.Filepublic long getLength()
getLength in interface xyz.cofe.fs.Fileprotected boolean isOS_Windows()
public String[] getComponents()
getComponents in interface xyz.cofe.fs.Pathpublic String getName()
getName in interface xyz.cofe.fs.Pathpublic String getPath()
getPath in interface xyz.cofe.fs.Pathpublic int compareTo(xyz.cofe.fs.Path o)
compareTo in interface Comparable<xyz.cofe.fs.Path>public BufferedInputStream openRead()
openRead in interface xyz.cofe.fs.Filepublic BufferedOutputStream openWrite()
openWrite in interface xyz.cofe.fs.Filepublic BufferedOutputStream openAppend()
openAppend in interface xyz.cofe.fs.Filepublic RandomAccessFile openReadWrite(xyz.cofe.fs.OpenMode mode)
openReadWrite in interface xyz.cofe.fs.Filepublic Iterable<xyz.cofe.fs.File> walk(xyz.cofe.fs.VisitOptions opts)
walk in interface xyz.cofe.fs.Filepublic Iterable<xyz.cofe.fs.File> walk()
walk in interface xyz.cofe.fs.Filepublic boolean isReadable()
isReadable in interface xyz.cofe.fs.Filepublic void setReadable(boolean readable)
setReadable in interface xyz.cofe.fs.Filepublic void setReadable(boolean readable,
boolean ownerOnly)
setReadable in interface xyz.cofe.fs.Filepublic boolean isWritable()
isWritable in interface xyz.cofe.fs.Filepublic void setWritable(boolean writable)
setWritable in interface xyz.cofe.fs.Filepublic void setWritable(boolean writable,
boolean ownerOnly)
setWritable in interface xyz.cofe.fs.Filepublic boolean isExecutable()
isExecutable in interface xyz.cofe.fs.Filepublic void setExecutable(boolean executable)
setExecutable in interface xyz.cofe.fs.Filepublic void setExecutable(boolean executable,
boolean ownerOnly)
setExecutable in interface xyz.cofe.fs.Filepublic void setModifyDate(Date modifyDate)
setModifyDate in interface xyz.cofe.fs.Filepublic void delete()
delete in interface xyz.cofe.fs.Filepublic void delete(xyz.cofe.common.Reciver<xyz.cofe.fs.File> deleted)
delete in interface xyz.cofe.fs.Filepublic void delete(xyz.cofe.common.Reciver<xyz.cofe.fs.File> deleted,
xyz.cofe.fs.VisitOptions opts)
delete in interface xyz.cofe.fs.Filepublic void mkdir()
mkdir in interface xyz.cofe.fs.Filepublic void mkdirs()
mkdirs in interface xyz.cofe.fs.Filepublic void renameTo(xyz.cofe.fs.File file)
renameTo in interface xyz.cofe.fs.FileCopyright © 2017. All rights reserved.