Package com.sshtools.common.files.vfs
Class PathFile
java.lang.Object
com.sshtools.common.files.vfs.PathFile
- All Implemented Interfaces:
com.sshtools.common.files.AbstractFile
@Deprecated(since="3.1.0",
forRemoval=true)
public class PathFile
extends Object
implements com.sshtools.common.files.AbstractFile
Deprecated, for removal: This API element is subject to removal in a future version.
Deprecated. Use
NioFileFactory
and NioFile
.-
Constructor Summary
ConstructorsConstructorDescriptionPathFile
(Path path, PathFileFactory factory) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyFrom
(com.sshtools.common.files.AbstractFile src) Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
delete
(boolean recursive) Deprecated, for removal: This API element is subject to removal in a future version.boolean
exists()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.com.sshtools.common.sftp.SftpFileAttributes
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.List<com.sshtools.common.files.AbstractFile>
Deprecated, for removal: This API element is subject to removal in a future version.com.sshtools.common.files.AbstractFileFactory<? extends com.sshtools.common.files.AbstractFile>
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getName()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getOutputStream
(boolean append) Deprecated, for removal: This API element is subject to removal in a future version.com.sshtools.common.files.AbstractFile
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isFile()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isHidden()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.long
Deprecated, for removal: This API element is subject to removal in a future version.long
length()
Deprecated, for removal: This API element is subject to removal in a future version.void
moveTo
(com.sshtools.common.files.AbstractFile target) Deprecated, for removal: This API element is subject to removal in a future version.com.sshtools.common.files.AbstractFileRandomAccess
openFile
(boolean writeAccess) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.void
refresh()
Deprecated, for removal: This API element is subject to removal in a future version.com.sshtools.common.files.AbstractFile
resolveFile
(String child) Deprecated, for removal: This API element is subject to removal in a future version.void
setAttributes
(com.sshtools.common.sftp.SftpFileAttributes attrs) Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.void
truncate()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sshtools.common.files.AbstractFile
existsNoFollowLinks, getAttributesNoFollowLinks, getVolume, linkFrom, linkTo, open, startMultipartUpload, supportsMultipartTransfers, symlinkFrom
-
Constructor Details
-
PathFile
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
copyFrom
public void copyFrom(com.sshtools.common.files.AbstractFile src) throws IOException, com.sshtools.common.permissions.PermissionDeniedException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
copyFrom
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
com.sshtools.common.permissions.PermissionDeniedException
-
createFolder
public boolean createFolder() throws com.sshtools.common.permissions.PermissionDeniedException, IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createFolder
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
com.sshtools.common.permissions.PermissionDeniedException
IOException
-
createNewFile
public boolean createNewFile() throws com.sshtools.common.permissions.PermissionDeniedException, IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createNewFile
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
com.sshtools.common.permissions.PermissionDeniedException
IOException
-
delete
public boolean delete(boolean recursive) throws IOException, com.sshtools.common.permissions.PermissionDeniedException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
delete
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
com.sshtools.common.permissions.PermissionDeniedException
-
exists
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
exists
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
-
getAbsolutePath
public String getAbsolutePath() throws IOException, com.sshtools.common.permissions.PermissionDeniedExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAbsolutePath
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
com.sshtools.common.permissions.PermissionDeniedException
-
getAttributes
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAttributes
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
-
getCanonicalPath
public String getCanonicalPath() throws IOException, com.sshtools.common.permissions.PermissionDeniedExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getCanonicalPath
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
com.sshtools.common.permissions.PermissionDeniedException
-
getChildren
public List<com.sshtools.common.files.AbstractFile> getChildren() throws IOException, com.sshtools.common.permissions.PermissionDeniedExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getChildren
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
com.sshtools.common.permissions.PermissionDeniedException
-
getFileFactory
public com.sshtools.common.files.AbstractFileFactory<? extends com.sshtools.common.files.AbstractFile> getFileFactory()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getFileFactory
in interfacecom.sshtools.common.files.AbstractFile
-
getInputStream
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getInputStream
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
-
getName
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getName
in interfacecom.sshtools.common.files.AbstractFile
-
getOutputStream
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getOutputStream
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
-
getOutputStream
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getOutputStream
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
-
isDirectory
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isDirectory
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
-
isFile
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isFile
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
-
isHidden
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isHidden
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
-
isReadable
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isReadable
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
-
isWritable
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isWritable
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
-
lastModified
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
lastModified
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
-
length
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
length
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
-
moveTo
public void moveTo(com.sshtools.common.files.AbstractFile target) throws IOException, com.sshtools.common.permissions.PermissionDeniedException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
moveTo
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
com.sshtools.common.permissions.PermissionDeniedException
-
openFile
public com.sshtools.common.files.AbstractFileRandomAccess openFile(boolean writeAccess) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
openFile
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
-
refresh
public void refresh()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
refresh
in interfacecom.sshtools.common.files.AbstractFile
-
resolveFile
public com.sshtools.common.files.AbstractFile resolveFile(String child) throws IOException, com.sshtools.common.permissions.PermissionDeniedException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
resolveFile
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
com.sshtools.common.permissions.PermissionDeniedException
-
setAttributes
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setAttributes
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
-
supportsRandomAccess
public boolean supportsRandomAccess()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
supportsRandomAccess
in interfacecom.sshtools.common.files.AbstractFile
-
truncate
public void truncate() throws com.sshtools.common.permissions.PermissionDeniedException, IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
truncate
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
com.sshtools.common.permissions.PermissionDeniedException
IOException
-
symlinkTo
public void symlinkTo(String target) throws IOException, com.sshtools.common.permissions.PermissionDeniedException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
symlinkTo
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
com.sshtools.common.permissions.PermissionDeniedException
-
readSymbolicLink
public String readSymbolicLink() throws IOException, com.sshtools.common.permissions.PermissionDeniedExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
readSymbolicLink
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
com.sshtools.common.permissions.PermissionDeniedException
-
getParentFile
public com.sshtools.common.files.AbstractFile getParentFile() throws IOException, com.sshtools.common.permissions.PermissionDeniedExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getParentFile
in interfacecom.sshtools.common.files.AbstractFile
- Throws:
IOException
com.sshtools.common.permissions.PermissionDeniedException
-