public class FileSystemObject extends Object implements 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() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
OutputStream |
getOutputStream(boolean append) |
boolean |
isDirectory() |
boolean |
isFile() |
boolean |
isHidden() |
boolean |
isMount() |
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 String getName()
getName in interface AbstractFilepublic InputStream getInputStream() throws IOException
getInputStream in interface AbstractFileIOExceptionpublic boolean exists()
exists in interface AbstractFilepublic boolean isMount()
throws IOException,
PermissionDeniedException
isMount in interface AbstractFileIOExceptionPermissionDeniedExceptionpublic List<AbstractFile> getChildren() throws IOException, PermissionDeniedException
getChildren in interface AbstractFileIOExceptionPermissionDeniedExceptionpublic String getAbsolutePath() throws IOException
getAbsolutePath in interface AbstractFileIOExceptionpublic OutputStream getOutputStream(boolean append) throws IOException
getOutputStream in interface AbstractFileIOExceptionpublic boolean isDirectory()
isDirectory in interface AbstractFilepublic boolean isFile()
isFile in interface AbstractFilepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface AbstractFileIOExceptionpublic boolean isHidden()
isHidden in interface AbstractFilepublic boolean createFolder()
createFolder in interface AbstractFilepublic boolean isReadable()
isReadable in interface AbstractFilepublic boolean isWritable()
isWritable in interface AbstractFilepublic 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 SftpFileAttributes getAttributes() throws FileNotFoundException, IOException, PermissionDeniedException
getAttributes in interface AbstractFileFileNotFoundExceptionIOExceptionPermissionDeniedExceptionpublic void refresh()
refresh in interface AbstractFilepublic long lastModified()
throws IOException
lastModified in interface AbstractFileIOExceptionpublic long length()
throws IOException
length 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)
setAttributes in interface AbstractFilepublic 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 AbstractFile resolveFile(String child) throws IOException
resolveFile in interface AbstractFileIOExceptionCopyright © 2012. All Rights Reserved.