public class FtpBusService extends Object implements UbFileSystemService
Modifier and Type | Class and Description |
---|---|
protected static class |
FtpBusService.FileEntry |
Modifier and Type | Field and Description |
---|---|
protected FileRegistry |
fr |
protected eu.javaexperience.file.AbstractFileSystem |
fs |
protected String |
rootPath |
Constructor and Description |
---|
FtpBusService(eu.javaexperience.file.AbstractFile af) |
protected FileRegistry fr
protected String rootPath
protected eu.javaexperience.file.AbstractFileSystem fs
public FtpBusService(eu.javaexperience.file.AbstractFile af) throws IOException
IOException
protected String getRelPath(eu.javaexperience.file.AbstractFile af)
protected eu.javaexperience.file.AbstractFile relToFile(String path)
protected FtpBusService.FileEntry translateFile(eu.javaexperience.file.AbstractFile file)
protected FtpBusService.FileEntry ensureTranslateFile(eu.javaexperience.file.AbstractFile file) throws eu.javaexperience.nativ.posix.PosixErrnoException
eu.javaexperience.nativ.posix.PosixErrnoException
protected FtpBusService.FileEntry fetchFile(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
eu.javaexperience.nativ.posix.PosixErrnoException
public boolean exists(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
exists
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public VUnsigned getParentFile(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
getParentFile
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public byte getFileType(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
getFileType
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public UbRemoteString getFileName(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
getFileName
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public VUnsigned getSize(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
getSize
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public VUnsigned[] listFiles(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
listFiles
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public VUnsigned getDirectoryFile(VUnsigned fileNo, VUnsigned index) throws eu.javaexperience.nativ.posix.PosixErrnoException
getDirectoryFile
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public boolean canRead(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
canRead
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public boolean canWrite(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
canWrite
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public VUnsigned createTime(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
createTime
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public VUnsigned lastModified(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
lastModified
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public byte[] getFilePart(VUnsigned fileNo, VUnsigned from, VUnsigned length) throws eu.javaexperience.nativ.posix.PosixErrnoException
getFilePart
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public VUnsigned mkdir(VUnsigned fileNo, String str) throws eu.javaexperience.nativ.posix.PosixErrnoException
mkdir
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public VUnsigned createNewRegularFile(VUnsigned fileNo, String str) throws eu.javaexperience.nativ.posix.PosixErrnoException
createNewRegularFile
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public boolean setLastModified(VUnsigned fileNo, VUnsigned time) throws eu.javaexperience.nativ.posix.PosixErrnoException
setLastModified
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public boolean delete(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
delete
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public VUnsigned moveFile(VUnsigned fileNo, VUnsigned dstDir) throws eu.javaexperience.nativ.posix.PosixErrnoException
moveFile
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public VUnsigned renameFile(VUnsigned fileNo, String name) throws eu.javaexperience.nativ.posix.PosixErrnoException
renameFile
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public VUnsigned truncateSize(VUnsigned fileNo, VUnsigned size) throws eu.javaexperience.nativ.posix.PosixErrnoException
truncateSize
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public VUnsigned appendFile(VUnsigned fileNo, VSigned poz, byte[] data) throws eu.javaexperience.nativ.posix.PosixErrnoException
appendFile
in interface UbFileSystemService
eu.javaexperience.nativ.posix.PosixErrnoException
public <T extends UbDeviceNs> T cast(Class<T> dst)
cast
in interface UbDeviceNs
public <T extends UbDeviceNs> T customNs(Class<T> dst, short num)
customNs
in interface UbDeviceNs
Copyright © 2020. All rights reserved.