public class VFSFile extends AbstractFileImpl<VFSFile,NoMount>
fileFactory| Constructor and Description |
|---|
VFSFile(String path,
AbstractFileFactory<VFSFile,NoMount> fileFactory,
Connection con) |
VFSFile(String path,
AbstractFileFactory<VFSFile,NoMount> fileFactory,
Connection con,
org.apache.commons.vfs2.FileSystemOptions opts) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createFolder() |
boolean |
createNewFile() |
boolean |
delete(boolean recurse) |
boolean |
exists() |
String |
getAbsolutePath() |
SftpFileAttributes |
getAttributes() |
String |
getCanonicalPath() |
List<AbstractFile> |
getChildren() |
org.apache.commons.vfs2.FileObject |
getFileObject() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
boolean |
isDirectory() |
boolean |
isFile() |
boolean |
isHidden() |
boolean |
isMount() |
boolean |
isReadable() |
boolean |
isWritable() |
long |
lastModified() |
long |
length() |
void |
moveTo(AbstractFile f2) |
AbstractFileRandomAccess |
openFile(boolean writeAccess) |
void |
refresh() |
void |
setAttributes(SftpFileAttributes attrs) |
boolean |
supportsRandomAccess() |
void |
truncate() |
copyFrom, getOutputStream, resolveFilepublic VFSFile(String path, AbstractFileFactory<VFSFile,NoMount> fileFactory, Connection con) throws IOException
IOExceptionpublic VFSFile(String path, AbstractFileFactory<VFSFile,NoMount> fileFactory, Connection con, org.apache.commons.vfs2.FileSystemOptions opts) throws IOException
IOExceptionpublic org.apache.commons.vfs2.FileObject getFileObject()
public boolean exists()
throws IOException
IOExceptionpublic boolean createFolder()
throws PermissionDeniedException,
IOException
PermissionDeniedExceptionIOExceptionpublic long lastModified()
throws IOException
IOExceptionpublic String getName()
public long length()
throws IOException
IOExceptionpublic SftpFileAttributes getAttributes() throws IOException
IOExceptionpublic boolean isHidden()
throws IOException
IOExceptionpublic boolean isDirectory()
throws IOException
IOExceptionpublic List<AbstractFile> getChildren() throws IOException, PermissionDeniedException
IOExceptionPermissionDeniedExceptionpublic boolean isFile()
throws IOException
IOExceptionpublic String getAbsolutePath() throws IOException, PermissionDeniedException
IOExceptionPermissionDeniedExceptionpublic boolean isReadable()
throws IOException
IOExceptionpublic boolean isWritable()
throws IOException
IOExceptionpublic boolean createNewFile()
throws PermissionDeniedException,
IOException
PermissionDeniedExceptionIOExceptionpublic void truncate()
throws PermissionDeniedException,
IOException
PermissionDeniedExceptionIOExceptionpublic InputStream getInputStream() throws IOException
IOExceptionpublic OutputStream getOutputStream() throws IOException
IOExceptionpublic boolean delete(boolean recurse)
throws IOException
IOExceptionpublic void moveTo(AbstractFile f2) throws IOException, PermissionDeniedException
IOExceptionPermissionDeniedExceptionpublic void setAttributes(SftpFileAttributes attrs)
public String getCanonicalPath() throws IOException, PermissionDeniedException
IOExceptionPermissionDeniedExceptionpublic boolean supportsRandomAccess()
public AbstractFileRandomAccess openFile(boolean writeAccess) throws IOException
IOExceptionpublic boolean isMount()
throws IOException,
PermissionDeniedException
IOExceptionPermissionDeniedExceptionpublic void refresh()
Copyright © 2012. All Rights Reserved.