public class UnixFileBasic
extends xyz.cofe.fs.AbstractFile
implements xyz.cofe.fs.UnixFile
| Constructor and Description |
|---|
UnixFileBasic(UnixFileBasic src) |
UnixFileBasic(UnixFileSystem unixFileSystem,
UnixFileConfig conf,
String filePath) |
UnixFileBasic(UnixFileSystem unixFileSystem,
UnixFileConfig conf,
xyz.cofe.fs.UnixPath unixPath) |
| Modifier and Type | Method and Description |
|---|---|
UnixFileBasic |
clone() |
int |
compareTo(xyz.cofe.fs.Path o) |
protected xyz.cofe.fs.UnixPath |
createUnixPath(String path) |
protected xyz.cofe.fs.UnixPath |
createUnixPath(xyz.cofe.fs.UnixPath parent,
String child) |
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) |
xyz.cofe.fs.UnixFile |
getAbsolute() |
Date |
getAccessDate() |
xyz.cofe.fs.UnixFile |
getCanonical() |
xyz.cofe.fs.UnixFile |
getChild(String name) |
String[] |
getComponents() |
Date |
getCreateDate() |
xyz.cofe.fs.UnixFileStat |
getFileStat() |
xyz.cofe.fs.FileSystem |
getFileSystem() |
int |
getGID() |
long |
getLength() |
int |
getMode() |
Date |
getModifyDate() |
String |
getName() |
xyz.cofe.fs.UnixFile |
getParent() |
String |
getPath() |
String |
getType() |
int |
getUID() |
xyz.cofe.fs.UnixPath |
getUnixPath() |
boolean |
isAbsolute() |
boolean |
isBlockDevice() |
boolean |
isCharDevice() |
boolean |
isDirectory() |
boolean |
isExecutable() |
boolean |
isExists() |
boolean |
isFifo() |
boolean |
isFile() |
boolean |
isGroupExec() |
boolean |
isGroupRead() |
boolean |
isGroupWrite() |
boolean |
isOtherExec() |
boolean |
isOtherRead() |
boolean |
isOtherWrite() |
boolean |
isReadable() |
boolean |
isRegularFile() |
boolean |
isRoot() |
boolean |
isSocket() |
boolean |
isSymbolicLink() |
boolean |
isUserExec() |
boolean |
isUserRead() |
boolean |
isUserWrite() |
boolean |
isWritable() |
List<xyz.cofe.fs.File> |
listFiles() |
void |
mkdir() |
void |
mkdir(int mode) |
void |
mkdirs() |
void |
mkdirs(int mode) |
BufferedOutputStream |
openAppend() |
BufferedInputStream |
openRead() |
RandomAccessFile |
openReadWrite(xyz.cofe.fs.OpenMode mode) |
BufferedOutputStream |
openWrite() |
String |
readLink() |
void |
renameTo(xyz.cofe.fs.File file) |
UnixFileBasic |
resolveLink() |
void |
setExecutable(boolean executable) |
void |
setExecutable(boolean executable,
boolean ownerOnly) |
void |
setGID(int gid) |
void |
setGroupExec(boolean value) |
void |
setGroupRead(boolean value) |
void |
setGroupWrite(boolean value) |
void |
setMode(int mode) |
void |
setModifyDate(Date modifyDate) |
void |
setOtherExec(boolean value) |
void |
setOtherRead(boolean value) |
void |
setOtherWrite(boolean value) |
void |
setOwner(int uid,
int gid) |
void |
setReadable(boolean readable) |
void |
setReadable(boolean readable,
boolean ownerOnly) |
void |
setUID(int uid) |
void |
setUserExec(boolean exec) |
void |
setUserRead(boolean read) |
void |
setUserWrite(boolean write) |
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, writeTextpublic UnixFileBasic(UnixFileSystem unixFileSystem, UnixFileConfig conf, String filePath)
public UnixFileBasic(UnixFileSystem unixFileSystem, UnixFileConfig conf, xyz.cofe.fs.UnixPath unixPath)
public UnixFileBasic(UnixFileBasic src)
public UnixFileBasic clone()
clone in interface xyz.cofe.fs.Fileclone in class xyz.cofe.fs.AbstractFilepublic xyz.cofe.fs.FileSystem getFileSystem()
getFileSystem in interface xyz.cofe.fs.Fileprotected xyz.cofe.fs.UnixPath createUnixPath(String path)
protected xyz.cofe.fs.UnixPath createUnixPath(xyz.cofe.fs.UnixPath parent,
String child)
public boolean isAbsolute()
isAbsolute in interface xyz.cofe.fs.Pathpublic boolean isRoot()
isRoot in interface xyz.cofe.fs.Pathpublic xyz.cofe.fs.UnixFile getCanonical()
getCanonical in interface xyz.cofe.fs.FilegetCanonical in interface xyz.cofe.fs.Pathpublic xyz.cofe.fs.UnixFile getAbsolute()
getAbsolute in interface xyz.cofe.fs.FilegetAbsolute in interface xyz.cofe.fs.Pathpublic xyz.cofe.fs.UnixFileStat getFileStat()
getFileStat in interface xyz.cofe.fs.UnixFilepublic xyz.cofe.fs.UnixPath getUnixPath()
getUnixPath in interface xyz.cofe.fs.UnixFilepublic xyz.cofe.fs.UnixFile getParent()
getParent in interface xyz.cofe.fs.FilegetParent in interface xyz.cofe.fs.Pathpublic xyz.cofe.fs.UnixFile 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 Date getCreateDate()
getCreateDate in interface xyz.cofe.fs.UnixFilepublic Date getAccessDate()
getAccessDate in interface xyz.cofe.fs.UnixFilepublic 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 boolean isSymbolicLink()
isSymbolicLink in interface xyz.cofe.fs.IsSymbolicLinkpublic String readLink()
readLink in interface xyz.cofe.fs.ReadLinkpublic UnixFileBasic resolveLink()
resolveLink in interface xyz.cofe.fs.ResolveLink<xyz.cofe.fs.UnixFile>public long getLength()
getLength in interface xyz.cofe.fs.Filepublic boolean isFifo()
isFifo in interface xyz.cofe.fs.UnixFilepublic boolean isCharDevice()
isCharDevice in interface xyz.cofe.fs.UnixFilepublic boolean isBlockDevice()
isBlockDevice in interface xyz.cofe.fs.UnixFilepublic boolean isRegularFile()
isRegularFile in interface xyz.cofe.fs.UnixFilepublic boolean isSocket()
isSocket in interface xyz.cofe.fs.UnixFilepublic boolean isUserRead()
isUserRead in interface xyz.cofe.fs.UnixFilepublic boolean isUserWrite()
isUserWrite in interface xyz.cofe.fs.UnixFilepublic boolean isUserExec()
isUserExec in interface xyz.cofe.fs.UnixFilepublic boolean isGroupRead()
isGroupRead in interface xyz.cofe.fs.UnixFilepublic boolean isGroupWrite()
isGroupWrite in interface xyz.cofe.fs.UnixFilepublic boolean isGroupExec()
isGroupExec in interface xyz.cofe.fs.UnixFilepublic boolean isOtherRead()
isOtherRead in interface xyz.cofe.fs.UnixFilepublic boolean isOtherWrite()
isOtherWrite in interface xyz.cofe.fs.UnixFilepublic boolean isOtherExec()
isOtherExec in interface xyz.cofe.fs.UnixFilepublic int getMode()
getMode in interface xyz.cofe.fs.UnixFilepublic void setMode(int mode)
setMode in interface xyz.cofe.fs.UnixFilepublic void setUserRead(boolean read)
setUserRead in interface xyz.cofe.fs.UnixFilepublic void setUserWrite(boolean write)
setUserWrite in interface xyz.cofe.fs.UnixFilepublic void setUserExec(boolean exec)
setUserExec in interface xyz.cofe.fs.UnixFilepublic void setGroupRead(boolean value)
setGroupRead in interface xyz.cofe.fs.UnixFilepublic void setGroupWrite(boolean value)
setGroupWrite in interface xyz.cofe.fs.UnixFilepublic void setGroupExec(boolean value)
setGroupExec in interface xyz.cofe.fs.UnixFilepublic void setOtherRead(boolean value)
setOtherRead in interface xyz.cofe.fs.UnixFilepublic void setOtherWrite(boolean value)
setOtherWrite in interface xyz.cofe.fs.UnixFilepublic void setOtherExec(boolean value)
setOtherExec in interface xyz.cofe.fs.UnixFilepublic int getUID()
getUID in interface xyz.cofe.fs.UnixFilepublic void setUID(int uid)
setUID in interface xyz.cofe.fs.UnixFilepublic int getGID()
getGID in interface xyz.cofe.fs.UnixFilepublic void setGID(int gid)
setGID in interface xyz.cofe.fs.UnixFilepublic String getType()
getType in interface xyz.cofe.fs.UnixFilepublic void setOwner(int uid,
int gid)
setOwner in interface xyz.cofe.fs.UnixFilepublic 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()
walk in interface xyz.cofe.fs.Filepublic Iterable<xyz.cofe.fs.File> walk(xyz.cofe.fs.VisitOptions opts)
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(int mode)
mkdir in interface xyz.cofe.fs.UnixFilepublic void mkdirs(int mode)
mkdirs in interface xyz.cofe.fs.UnixFilepublic 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.