com.maverick.sshd.sftp
Class FileSystemObject
java.lang.Object
com.maverick.sshd.sftp.FileSystemObject
- All Implemented Interfaces:
- AbstractFile
public class FileSystemObject
- extends Object
- implements AbstractFile
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getName
public String getName()
- Specified by:
getName in interface AbstractFile
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream in interface AbstractFile
- Throws:
IOException
exists
public boolean exists()
- Specified by:
exists in interface AbstractFile
isMount
public boolean isMount()
throws IOException,
PermissionDeniedException
- Specified by:
isMount in interface AbstractFile
- Throws:
IOException
PermissionDeniedException
getChildren
public List<AbstractFile> getChildren()
throws IOException,
PermissionDeniedException
- Specified by:
getChildren in interface AbstractFile
- Throws:
IOException
PermissionDeniedException
getAbsolutePath
public String getAbsolutePath()
throws IOException
- Specified by:
getAbsolutePath in interface AbstractFile
- Throws:
IOException
getOutputStream
public OutputStream getOutputStream(boolean append)
throws IOException
- Specified by:
getOutputStream in interface AbstractFile
- Throws:
IOException
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory in interface AbstractFile
isFile
public boolean isFile()
- Specified by:
isFile in interface AbstractFile
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Specified by:
getOutputStream in interface AbstractFile
- Throws:
IOException
isHidden
public boolean isHidden()
- Specified by:
isHidden in interface AbstractFile
createFolder
public boolean createFolder()
- Specified by:
createFolder in interface AbstractFile
isReadable
public boolean isReadable()
- Specified by:
isReadable in interface AbstractFile
isWritable
public boolean isWritable()
- Specified by:
isWritable in interface AbstractFile
copyFrom
public void copyFrom(AbstractFile src)
throws IOException,
PermissionDeniedException
- Specified by:
copyFrom in interface AbstractFile
- Throws:
IOException
PermissionDeniedException
moveTo
public void moveTo(AbstractFile target)
throws IOException,
PermissionDeniedException
- Specified by:
moveTo in interface AbstractFile
- Throws:
IOException
PermissionDeniedException
delete
public boolean delete(boolean recursive)
throws IOException,
PermissionDeniedException
- Specified by:
delete in interface AbstractFile
- Throws:
IOException
PermissionDeniedException
getAttributes
public SftpFileAttributes getAttributes()
throws FileNotFoundException,
IOException,
PermissionDeniedException
- Specified by:
getAttributes in interface AbstractFile
- Throws:
FileNotFoundException
IOException
PermissionDeniedException
refresh
public void refresh()
- Specified by:
refresh in interface AbstractFile
lastModified
public long lastModified()
throws IOException
- Specified by:
lastModified in interface AbstractFile
- Throws:
IOException
length
public long length()
throws IOException
- Specified by:
length in interface AbstractFile
- Throws:
IOException
createNewFile
public boolean createNewFile()
throws PermissionDeniedException,
IOException
- Specified by:
createNewFile in interface AbstractFile
- Throws:
PermissionDeniedException
IOException
truncate
public void truncate()
throws PermissionDeniedException,
IOException
- Specified by:
truncate in interface AbstractFile
- Throws:
PermissionDeniedException
IOException
setAttributes
public void setAttributes(SftpFileAttributes attrs)
- Specified by:
setAttributes in interface AbstractFile
getCanonicalPath
public String getCanonicalPath()
throws IOException,
PermissionDeniedException
- Specified by:
getCanonicalPath in interface AbstractFile
- Throws:
IOException
PermissionDeniedException
supportsRandomAccess
public boolean supportsRandomAccess()
- Specified by:
supportsRandomAccess in interface AbstractFile
openFile
public AbstractFileRandomAccess openFile(boolean writeAccess)
throws IOException
- Specified by:
openFile in interface AbstractFile
- Throws:
IOException
resolveFile
public AbstractFile resolveFile(String child)
throws IOException
- Specified by:
resolveFile in interface AbstractFile
- Throws:
IOException
Copyright © 2012. All Rights Reserved.