public class VFSFile extends AbstractFileImpl<VFSFile>
fileFactory
Constructor and Description |
---|
VFSFile(org.apache.commons.vfs2.FileObject file,
VFSFileFactory fileFactory,
Connection con) |
VFSFile(String path,
String defaultPath,
VFSFileFactory fileFactory,
Connection con,
org.apache.commons.vfs2.FileSystemOptions opts) |
VFSFile(String path,
VFSFileFactory fileFactory,
Connection con) |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(AbstractFile src) |
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 |
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() |
getFileFactory, getOutputStream
public VFSFile(org.apache.commons.vfs2.FileObject file, VFSFileFactory fileFactory, Connection con)
public VFSFile(String path, VFSFileFactory fileFactory, Connection con) throws IOException
IOException
public VFSFile(String path, String defaultPath, VFSFileFactory fileFactory, Connection con, org.apache.commons.vfs2.FileSystemOptions opts) throws IOException
IOException
public org.apache.commons.vfs2.FileObject getFileObject()
public boolean exists() throws IOException
IOException
public boolean createFolder() throws PermissionDeniedException, IOException
PermissionDeniedException
IOException
public long lastModified() throws IOException
IOException
public String getName()
public long length() throws IOException
IOException
public SftpFileAttributes getAttributes() throws IOException
IOException
public boolean isHidden() throws IOException
IOException
public boolean isDirectory() throws IOException
IOException
public List<AbstractFile> getChildren() throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
public boolean isFile() throws IOException
IOException
public String getAbsolutePath() throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
public void copyFrom(AbstractFile src) throws IOException, PermissionDeniedException
copyFrom
in interface AbstractFile
copyFrom
in class AbstractFileImpl<VFSFile>
IOException
PermissionDeniedException
public boolean isReadable() throws IOException
IOException
public boolean isWritable() throws IOException
IOException
public boolean createNewFile() throws PermissionDeniedException, IOException
PermissionDeniedException
IOException
public void truncate() throws PermissionDeniedException, IOException
PermissionDeniedException
IOException
public InputStream getInputStream() throws IOException
IOException
public OutputStream getOutputStream() throws IOException
IOException
public boolean delete(boolean recurse) throws IOException
IOException
public void moveTo(AbstractFile target) throws IOException, PermissionDeniedException
moveTo
in interface AbstractFile
moveTo
in class AbstractFileImpl<VFSFile>
IOException
PermissionDeniedException
public void setAttributes(SftpFileAttributes attrs) throws IOException
IOException
public String getCanonicalPath() throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
public boolean supportsRandomAccess()
public AbstractFileRandomAccess openFile(boolean writeAccess) throws IOException
IOException
public void refresh()
public AbstractFile resolveFile(String child) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
Copyright © 2024. All rights reserved.