public interface AbstractFile
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(AbstractFile src) |
boolean |
createFolder() |
boolean |
createNewFile() |
boolean |
delete(boolean recursive) |
boolean |
exists() |
String |
getAbsolutePath() |
SftpFileAttributes |
getAttributes() |
String |
getCanonicalPath() |
List<AbstractFile> |
getChildren() |
AbstractFileFactory<? extends AbstractFile> |
getFileFactory() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
OutputStream |
getOutputStream(boolean append) |
boolean |
isDirectory() |
boolean |
isFile() |
boolean |
isHidden() |
boolean |
isReadable() |
boolean |
isWritable() |
long |
lastModified() |
long |
length() |
void |
moveTo(AbstractFile target) |
AbstractFileRandomAccess |
openFile(boolean writeAccess) |
void |
refresh() |
AbstractFile |
resolveFile(String child) |
void |
setAttributes(SftpFileAttributes attrs) |
boolean |
supportsRandomAccess() |
void |
truncate() |
String getName()
InputStream getInputStream() throws IOException
IOExceptionboolean exists()
throws IOException
IOExceptionList<AbstractFile> getChildren() throws IOException, PermissionDeniedException
IOExceptionPermissionDeniedExceptionString getAbsolutePath() throws IOException, PermissionDeniedException
IOExceptionPermissionDeniedExceptionboolean isDirectory()
throws IOException
IOExceptionboolean isFile()
throws IOException
IOExceptionOutputStream getOutputStream() throws IOException
IOExceptionboolean isHidden()
throws IOException
IOExceptionboolean createFolder()
throws PermissionDeniedException,
IOException
PermissionDeniedExceptionIOExceptionboolean isReadable()
throws IOException
IOExceptionvoid copyFrom(AbstractFile src) throws IOException, PermissionDeniedException
IOExceptionPermissionDeniedExceptionvoid moveTo(AbstractFile target) throws IOException, PermissionDeniedException
IOExceptionPermissionDeniedExceptionboolean delete(boolean recursive)
throws IOException,
PermissionDeniedException
IOExceptionPermissionDeniedExceptionSftpFileAttributes getAttributes() throws FileNotFoundException, IOException, PermissionDeniedException
void refresh()
long lastModified()
throws IOException
IOExceptionlong length()
throws IOException
IOExceptionboolean isWritable()
throws IOException
IOExceptionboolean createNewFile()
throws PermissionDeniedException,
IOException
PermissionDeniedExceptionIOExceptionvoid truncate()
throws PermissionDeniedException,
IOException
PermissionDeniedExceptionIOExceptionvoid setAttributes(SftpFileAttributes attrs) throws PermissionDeniedException, IOException
PermissionDeniedExceptionIOExceptionString getCanonicalPath() throws IOException, PermissionDeniedException
IOExceptionPermissionDeniedExceptionboolean supportsRandomAccess()
AbstractFileRandomAccess openFile(boolean writeAccess) throws IOException
IOExceptionOutputStream getOutputStream(boolean append) throws IOException
IOExceptionAbstractFile resolveFile(String child) throws IOException, PermissionDeniedException
IOExceptionPermissionDeniedExceptionAbstractFileFactory<? extends AbstractFile> getFileFactory()
Copyright © 2025. All rights reserved.