public class DirectFile extends AbstractDirectFile<DirectFile>
f, hidden, homeDir
con, fileFactory
Constructor and Description |
---|
DirectFile(String path,
AbstractFileFactory<DirectFile> fileFactory,
Connection con,
String homeDir) |
Modifier and Type | Method and Description |
---|---|
SftpFileAttributes |
getAttributes() |
List<AbstractFile> |
getChildren() |
AbstractFile |
resolveFile(String child) |
createFolder, createNewFile, delete, exists, getAbsolutePath, getCanonicalPath, getInputStream, getName, getOutputStream, isDirectory, isFile, isHidden, isReadable, isWritable, lastModified, length, moveTo, openFile, refresh, setAttributes, supportsRandomAccess, truncate
copyFrom, getFileFactory, getOutputStream
public DirectFile(String path, AbstractFileFactory<DirectFile> fileFactory, Connection con, String homeDir) throws IOException
IOException
public SftpFileAttributes getAttributes() throws FileNotFoundException
getAttributes
in interface AbstractFile
getAttributes
in class AbstractDirectFile<DirectFile>
FileNotFoundException
public List<AbstractFile> getChildren() throws IOException
IOException
public AbstractFile resolveFile(String child) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
Copyright © 2024. All rights reserved.