public class SftpFile
extends java.lang.Object
Constructor and Description |
---|
SftpFile(java.lang.String name,
com.jscape.util.file.UnixFileType type,
long size,
java.lang.String owner,
java.lang.String group,
com.jscape.util.file.PosixFilePermissions permissions,
long accessTime,
long modificationTime) |
Modifier and Type | Method and Description |
---|---|
long |
getAccessTime()
Returns the file access time as milliseconds from Jan 1, 1970 in UTC.
|
java.lang.String |
getFilename()
Returns the name of the file or directory denoted by
this abstract pathname.
|
long |
getFilesize()
Returns the size of the file denoted by this abstract pathname.
|
java.lang.String |
getGroup()
Returns the owner group name for this abstract pathname as string.
|
java.lang.String |
getLongName()
Deprecated.
|
long |
getModificationTime()
Returns the file modification time as milliseconds from Jan 1, 1970 in UTC.
|
java.lang.String |
getOwner()
Returns the owner name for this abstract pathname as string.
|
java.lang.String |
getPermission()
Deprecated.
|
int |
getPermissions()
Returns POSIX string representation of the file permissions.
|
boolean |
isDirectory()
Tests whether the file denoted by this abstract pathname is a directory.
|
java.lang.String |
toString() |
public SftpFile(java.lang.String name, com.jscape.util.file.UnixFileType type, long size, java.lang.String owner, java.lang.String group, com.jscape.util.file.PosixFilePermissions permissions, long accessTime, long modificationTime)
public java.lang.String getFilename()
public java.lang.String getLongName()
public boolean isDirectory()
true
if and only if the file denoted by this
abstract pathname exists and is a directory; false
otherwiseSftpException
- if an I/O error occurredpublic long getFilesize()
SftpException
- if an I/O error occurredpublic java.lang.String getOwner()
SftpException
- if an I/O error occurredpublic java.lang.String getGroup()
SftpException
- if an I/O error occurredpublic int getPermissions()
SftpException
- if an I/O error occurredpublic java.lang.String getPermission()
SftpException
- if an I/O error occurredpublic long getAccessTime()
SftpException
- if an I/O error occurredpublic long getModificationTime()
SftpException
- if an I/O error occurredpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved