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 char
private final long
private final long
Fields 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 TypeMethodDescriptionboolean
long
long
int
hashCode()
static ScpTimestampCommandDetails
toHeader()
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:
toHeader
in 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
ScpTimestampCommandDetails
value with the timestamps converted to milliseconds - Throws:
NumberFormatException
- if bad numerical values - Note: validates that 1st character is 'T'.- See Also:
-