com.maverick.sshd.sftp
Interface AbstractFile
- All Known Subinterfaces:
- VirtualFile
- All Known Implementing Classes:
- AbstractDirectFile, AbstractFileAdapter, AbstractFileImpl, DirectFile, FileSystemObject, VFSFile, VirtualMappedFile, VirtualMountFile
public interface AbstractFile
getName
String getName()
getInputStream
InputStream getInputStream()
throws IOException
- Throws:
IOException
exists
boolean exists()
throws IOException
- Throws:
IOException
isMount
boolean isMount()
throws IOException,
PermissionDeniedException
- Throws:
IOException
PermissionDeniedException
getChildren
List<AbstractFile> getChildren()
throws IOException,
PermissionDeniedException
- Throws:
IOException
PermissionDeniedException
getAbsolutePath
String getAbsolutePath()
throws IOException,
PermissionDeniedException
- Throws:
IOException
PermissionDeniedException
isDirectory
boolean isDirectory()
throws IOException
- Throws:
IOException
isFile
boolean isFile()
throws IOException
- Throws:
IOException
getOutputStream
OutputStream getOutputStream()
throws IOException
- Throws:
IOException
isHidden
boolean isHidden()
throws IOException
- Throws:
IOException
createFolder
boolean createFolder()
throws PermissionDeniedException,
IOException
- Throws:
PermissionDeniedException
IOException
isReadable
boolean isReadable()
throws IOException
- Throws:
IOException
copyFrom
void copyFrom(AbstractFile src)
throws IOException,
PermissionDeniedException
- Throws:
IOException
PermissionDeniedException
moveTo
void moveTo(AbstractFile target)
throws IOException,
PermissionDeniedException
- Throws:
IOException
PermissionDeniedException
delete
boolean delete(boolean recursive)
throws IOException,
PermissionDeniedException
- Throws:
IOException
PermissionDeniedException
getAttributes
SftpFileAttributes getAttributes()
throws FileNotFoundException,
IOException,
PermissionDeniedException
- Throws:
FileNotFoundException
IOException
PermissionDeniedException
refresh
void refresh()
lastModified
long lastModified()
throws IOException
- Throws:
IOException
length
long length()
throws IOException
- Throws:
IOException
isWritable
boolean isWritable()
throws IOException
- Throws:
IOException
createNewFile
boolean createNewFile()
throws PermissionDeniedException,
IOException
- Throws:
PermissionDeniedException
IOException
truncate
void truncate()
throws PermissionDeniedException,
IOException
- Throws:
PermissionDeniedException
IOException
setAttributes
void setAttributes(SftpFileAttributes attrs)
throws IOException
- Throws:
IOException
getCanonicalPath
String getCanonicalPath()
throws IOException,
PermissionDeniedException
- Throws:
IOException
PermissionDeniedException
supportsRandomAccess
boolean supportsRandomAccess()
openFile
AbstractFileRandomAccess openFile(boolean writeAccess)
throws IOException
- Throws:
IOException
getOutputStream
OutputStream getOutputStream(boolean append)
throws IOException
- Throws:
IOException
resolveFile
AbstractFile resolveFile(String child)
throws IOException,
PermissionDeniedException
- Throws:
IOException
PermissionDeniedException
Copyright © 2012. All Rights Reserved.