Class ScpTimestampCommandDetails
java.lang.Object
org.apache.sshd.scp.common.helpers.AbstractScpCommandDetails
org.apache.sshd.scp.common.helpers.ScpTimestampCommandDetails
Represents an SCP timestamp definition
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charprivate final longprivate final longFields inherited from class org.apache.sshd.scp.common.helpers.AbstractScpCommandDetails
command -
Constructor Summary
ConstructorsConstructorDescriptionScpTimestampCommandDetails(long modTime, long accTime) ScpTimestampCommandDetails(String header) ScpTimestampCommandDetails(FileTime modTime, FileTime accTime) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonglonginthashCode()static ScpTimestampCommandDetailstoHeader()toString()Methods inherited from class org.apache.sshd.scp.common.helpers.AbstractScpCommandDetails
getCommand
-
Field Details
-
COMMAND_NAME
public static final char COMMAND_NAME- See Also:
-
lastModifiedTime
private final long lastModifiedTime -
lastAccessTime
private final long lastAccessTime
-
-
Constructor Details
-
ScpTimestampCommandDetails
-
ScpTimestampCommandDetails
-
ScpTimestampCommandDetails
public ScpTimestampCommandDetails(long modTime, long accTime)
-
-
Method Details
-
getLastModifiedTime
public long getLastModifiedTime() -
getLastAccessTime
public long getLastAccessTime() -
toHeader
- Specified by:
toHeaderin classAbstractScpCommandDetails- Returns:
- The equivalent SCP command header represented by these details
-
hashCode
public int hashCode() -
equals
-
toString
-
parse
- Parameters:
line- The time specification - format:T<mtime-sec> <mtime-micros> <atime-sec> <atime-micros>where specified times are in seconds since UTC - ignored ifnull- Returns:
- The
ScpTimestampCommandDetailsvalue with the timestamps converted to milliseconds - Throws:
NumberFormatException- if bad numerical values - Note: validates that 1st character is 'T'.- See Also:
-