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
IOException
boolean exists() throws IOException
IOException
List<AbstractFile> getChildren() throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
String getAbsolutePath() throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
boolean isDirectory() throws IOException
IOException
boolean isFile() throws IOException
IOException
OutputStream getOutputStream() throws IOException
IOException
boolean isHidden() throws IOException
IOException
boolean createFolder() throws PermissionDeniedException, IOException
PermissionDeniedException
IOException
boolean isReadable() throws IOException
IOException
void copyFrom(AbstractFile src) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
void moveTo(AbstractFile target) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
boolean delete(boolean recursive) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
SftpFileAttributes getAttributes() throws FileNotFoundException, IOException, PermissionDeniedException
void refresh()
long lastModified() throws IOException
IOException
long length() throws IOException
IOException
boolean isWritable() throws IOException
IOException
boolean createNewFile() throws PermissionDeniedException, IOException
PermissionDeniedException
IOException
void truncate() throws PermissionDeniedException, IOException
PermissionDeniedException
IOException
void setAttributes(SftpFileAttributes attrs) throws PermissionDeniedException, IOException
PermissionDeniedException
IOException
String getCanonicalPath() throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
boolean supportsRandomAccess()
AbstractFileRandomAccess openFile(boolean writeAccess) throws IOException
IOException
OutputStream getOutputStream(boolean append) throws IOException
IOException
AbstractFile resolveFile(String child) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
AbstractFileFactory<? extends AbstractFile> getFileFactory()
Copyright © 2023. All rights reserved.