public class VirtualMountFile extends Object implements VirtualFile
| Constructor and Description |
|---|
VirtualMountFile(String path,
VirtualMount mount,
VirtualMountManager mgr,
Connection con) |
| 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<VirtualFile> |
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() |
public VirtualMountFile(String path, VirtualMount mount, VirtualMountManager mgr, Connection con) throws PermissionDeniedException, IOException
PermissionDeniedExceptionIOExceptionpublic boolean exists()
throws IOException
exists in interface AbstractFileIOExceptionpublic boolean createFolder()
throws PermissionDeniedException,
IOException
createFolder in interface AbstractFilePermissionDeniedExceptionIOExceptionpublic long lastModified()
throws IOException
lastModified in interface AbstractFileIOExceptionpublic String getName()
getName in interface AbstractFilepublic long length()
throws IOException
length in interface AbstractFileIOExceptionpublic SftpFileAttributes getAttributes() throws FileNotFoundException, IOException, PermissionDeniedException
getAttributes in interface AbstractFileFileNotFoundExceptionIOExceptionPermissionDeniedExceptionpublic boolean isHidden()
throws IOException
isHidden in interface AbstractFileIOExceptionpublic boolean isDirectory()
throws IOException
isDirectory in interface AbstractFileIOExceptionpublic List<AbstractFile> getChildren() throws IOException, PermissionDeniedException
getChildren in interface AbstractFileIOExceptionPermissionDeniedExceptionpublic boolean isFile()
throws IOException
isFile in interface AbstractFileIOExceptionpublic String getAbsolutePath() throws IOException, PermissionDeniedException
getAbsolutePath in interface AbstractFileIOExceptionPermissionDeniedExceptionpublic InputStream getInputStream() throws IOException
getInputStream in interface AbstractFileIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in interface AbstractFileIOExceptionpublic boolean isReadable()
throws IOException
isReadable in interface AbstractFileIOExceptionpublic void copyFrom(AbstractFile src) throws IOException, PermissionDeniedException
copyFrom in interface AbstractFileIOExceptionPermissionDeniedExceptionpublic void moveTo(AbstractFile target) throws IOException, PermissionDeniedException
moveTo in interface AbstractFileIOExceptionPermissionDeniedExceptionpublic boolean delete(boolean recursive)
throws IOException,
PermissionDeniedException
delete in interface AbstractFileIOExceptionPermissionDeniedExceptionpublic void refresh()
refresh in interface AbstractFilepublic boolean isWritable()
throws IOException
isWritable in interface AbstractFileIOExceptionpublic boolean createNewFile()
throws PermissionDeniedException,
IOException
createNewFile in interface AbstractFilePermissionDeniedExceptionIOExceptionpublic void truncate()
throws PermissionDeniedException,
IOException
truncate in interface AbstractFilePermissionDeniedExceptionIOExceptionpublic void setAttributes(SftpFileAttributes attrs) throws IOException, PermissionDeniedException
setAttributes in interface AbstractFileIOExceptionPermissionDeniedExceptionpublic String getCanonicalPath() throws IOException, PermissionDeniedException
getCanonicalPath in interface AbstractFileIOExceptionPermissionDeniedExceptionpublic boolean supportsRandomAccess()
supportsRandomAccess in interface AbstractFilepublic AbstractFileRandomAccess openFile(boolean writeAccess) throws IOException
openFile in interface AbstractFileIOExceptionpublic OutputStream getOutputStream(boolean append) throws IOException
getOutputStream in interface AbstractFileIOExceptionpublic AbstractFile resolveFile(String child) throws IOException, PermissionDeniedException
resolveFile in interface AbstractFileIOExceptionPermissionDeniedExceptionpublic AbstractFileFactory<VirtualFile> getFileFactory()
getFileFactory in interface AbstractFileCopyright © 2025. All rights reserved.