com.maverick.sshd.fs
Class AbstractFileAdapter
java.lang.Object
com.maverick.sshd.fs.AbstractFileAdapter
- All Implemented Interfaces:
- AbstractFile
- Direct Known Subclasses:
- VirtualMappedFile
public class AbstractFileAdapter
- extends Object
- implements AbstractFile
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFileAdapter
public AbstractFileAdapter(AbstractFile file)
AbstractFileAdapter
public AbstractFileAdapter()
init
protected void init(AbstractFile file)
exists
public boolean exists()
throws IOException
- Specified by:
exists in interface AbstractFile
- Throws:
IOException
createFolder
public boolean createFolder()
throws IOException,
PermissionDeniedException
- Specified by:
createFolder in interface AbstractFile
- Throws:
IOException
PermissionDeniedException
lastModified
public long lastModified()
throws IOException
- Specified by:
lastModified in interface AbstractFile
- Throws:
IOException
getName
public String getName()
- Specified by:
getName in interface AbstractFile
length
public long length()
throws IOException
- Specified by:
length in interface AbstractFile
- Throws:
IOException
getAttributes
public SftpFileAttributes getAttributes()
throws IOException,
PermissionDeniedException
- Specified by:
getAttributes in interface AbstractFile
- Throws:
IOException
PermissionDeniedException
isDirectory
public boolean isDirectory()
throws IOException
- Specified by:
isDirectory in interface AbstractFile
- Throws:
IOException
getChildren
public List<AbstractFile> getChildren()
throws IOException,
PermissionDeniedException
- Specified by:
getChildren in interface AbstractFile
- Throws:
IOException
PermissionDeniedException
isFile
public boolean isFile()
throws IOException
- Specified by:
isFile in interface AbstractFile
- Throws:
IOException
getAbsolutePath
public String getAbsolutePath()
throws IOException,
PermissionDeniedException
- Specified by:
getAbsolutePath in interface AbstractFile
- Throws:
IOException
PermissionDeniedException
isReadable
public boolean isReadable()
throws IOException
- Specified by:
isReadable 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
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream in interface AbstractFile
- Throws:
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
isHidden
public boolean isHidden()
throws IOException
- Specified by:
isHidden in interface AbstractFile
- Throws:
IOException
isMount
public boolean isMount()
throws IOException,
PermissionDeniedException
- Specified by:
isMount in interface AbstractFile
- Throws:
IOException
PermissionDeniedException
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Specified by:
getOutputStream in interface AbstractFile
- Throws:
IOException
isWritable
public boolean isWritable()
throws IOException
- Specified by:
isWritable in interface AbstractFile
- Throws:
IOException
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
refresh
public void refresh()
- Specified by:
refresh in interface AbstractFile
getOutputStream
public OutputStream getOutputStream(boolean append)
throws IOException
- Specified by:
getOutputStream in interface AbstractFile
- Throws:
IOException
resolveFile
public AbstractFile resolveFile(String child)
throws IOException,
PermissionDeniedException
- Specified by:
resolveFile in interface AbstractFile
- Throws:
IOException
PermissionDeniedException
Copyright © 2012. All Rights Reserved.