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
IOExceptionprotected 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.PosixErrnoExceptionprotected FtpBusService.FileEntry fetchFile(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
eu.javaexperience.nativ.posix.PosixErrnoExceptionpublic boolean exists(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
exists in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic VUnsigned getParentFile(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
getParentFile in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic byte getFileType(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
getFileType in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic UbRemoteString getFileName(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
getFileName in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic VUnsigned getSize(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
getSize in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic VUnsigned[] listFiles(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
listFiles in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic VUnsigned getDirectoryFile(VUnsigned fileNo, VUnsigned index) throws eu.javaexperience.nativ.posix.PosixErrnoException
getDirectoryFile in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic boolean canRead(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
canRead in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic boolean canWrite(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
canWrite in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic VUnsigned createTime(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
createTime in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic VUnsigned lastModified(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
lastModified in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic byte[] getFilePart(VUnsigned fileNo, VUnsigned from, VUnsigned length) throws eu.javaexperience.nativ.posix.PosixErrnoException
getFilePart in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic VUnsigned mkdir(VUnsigned fileNo, String str) throws eu.javaexperience.nativ.posix.PosixErrnoException
mkdir in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic VUnsigned createNewRegularFile(VUnsigned fileNo, String str) throws eu.javaexperience.nativ.posix.PosixErrnoException
createNewRegularFile in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic boolean setLastModified(VUnsigned fileNo, VUnsigned time) throws eu.javaexperience.nativ.posix.PosixErrnoException
setLastModified in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic boolean delete(VUnsigned fileNo) throws eu.javaexperience.nativ.posix.PosixErrnoException
delete in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic VUnsigned moveFile(VUnsigned fileNo, VUnsigned dstDir) throws eu.javaexperience.nativ.posix.PosixErrnoException
moveFile in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic VUnsigned renameFile(VUnsigned fileNo, String name) throws eu.javaexperience.nativ.posix.PosixErrnoException
renameFile in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic VUnsigned truncateSize(VUnsigned fileNo, VUnsigned size) throws eu.javaexperience.nativ.posix.PosixErrnoException
truncateSize in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic VUnsigned appendFile(VUnsigned fileNo, VSigned poz, byte[] data) throws eu.javaexperience.nativ.posix.PosixErrnoException
appendFile in interface UbFileSystemServiceeu.javaexperience.nativ.posix.PosixErrnoExceptionpublic <T extends UbDeviceNs> T cast(Class<T> dst)
cast in interface UbDeviceNspublic <T extends UbDeviceNs> T customNs(Class<T> dst, short num)
customNs in interface UbDeviceNsCopyright © 2020. All rights reserved.