public class VirtualMappedFile extends AbstractFileAdapter implements VirtualFile
file
Constructor and Description |
---|
VirtualMappedFile(String path,
Connection con,
VirtualMount parentMount,
VirtualFileFactory fileFactory) |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(AbstractFile src) |
String |
getAbsolutePath() |
String |
getCanonicalPath() |
List<AbstractFile> |
getChildren() |
AbstractFile |
getMappedFile() |
String |
getName() |
void |
moveTo(AbstractFile target) |
AbstractFile |
resolveFile(String child) |
protected String |
translateCanonicalPath(String path,
String securemount) |
createFolder, createNewFile, delete, exists, getAttributes, getFileFactory, getInputStream, getOutputStream, getOutputStream, init, isDirectory, isFile, isHidden, isReadable, isWritable, lastModified, length, openFile, refresh, setAttributes, supportsRandomAccess, truncate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createFolder, createNewFile, delete, exists, getAttributes, getFileFactory, getInputStream, getOutputStream, getOutputStream, isDirectory, isFile, isHidden, isReadable, isWritable, lastModified, length, openFile, refresh, setAttributes, supportsRandomAccess, truncate
public VirtualMappedFile(String path, Connection con, VirtualMount parentMount, VirtualFileFactory fileFactory) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
public List<AbstractFile> getChildren() throws IOException, PermissionDeniedException
getChildren
in interface AbstractFile
getChildren
in class AbstractFileAdapter
IOException
PermissionDeniedException
public AbstractFile getMappedFile()
public String getAbsolutePath() throws IOException, PermissionDeniedException
getAbsolutePath
in interface AbstractFile
getAbsolutePath
in class AbstractFileAdapter
IOException
PermissionDeniedException
public String getCanonicalPath() throws IOException, PermissionDeniedException
getCanonicalPath
in interface AbstractFile
getCanonicalPath
in class AbstractFileAdapter
IOException
PermissionDeniedException
public String getName()
getName
in interface AbstractFile
getName
in class AbstractFileAdapter
public AbstractFile resolveFile(String child) throws PermissionDeniedException, IOException
resolveFile
in interface AbstractFile
resolveFile
in class AbstractFileAdapter
PermissionDeniedException
IOException
public void copyFrom(AbstractFile src) throws IOException, PermissionDeniedException
copyFrom
in interface AbstractFile
copyFrom
in class AbstractFileAdapter
IOException
PermissionDeniedException
public void moveTo(AbstractFile target) throws IOException, PermissionDeniedException
moveTo
in interface AbstractFile
moveTo
in class AbstractFileAdapter
IOException
PermissionDeniedException
protected String translateCanonicalPath(String path, String securemount) throws FileNotFoundException, IOException, PermissionDeniedException
Copyright © 2024. All rights reserved.