public class ScpTimestampCommandDetails extends AbstractScpCommandDetails
Modifier and Type | Field and Description |
---|---|
static char |
COMMAND_NAME |
command
Constructor and Description |
---|
ScpTimestampCommandDetails(FileTime modTime,
FileTime accTime) |
ScpTimestampCommandDetails(long modTime,
long accTime) |
ScpTimestampCommandDetails(String header) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getLastAccessTime() |
long |
getLastModifiedTime() |
int |
hashCode() |
static ScpTimestampCommandDetails |
parse(String line) |
String |
toHeader() |
String |
toString() |
getCommand
public static final char COMMAND_NAME
public ScpTimestampCommandDetails(String header)
public ScpTimestampCommandDetails(long modTime, long accTime)
public long getLastModifiedTime()
public long getLastAccessTime()
public String toHeader()
toHeader
in class AbstractScpCommandDetails
public static ScpTimestampCommandDetails parse(String line) throws NumberFormatException
line
- The time specification - format:
T<mtime-sec> <mtime-micros> <atime-sec> <atime-micros>
where specified
times are in seconds since UTC - ignored if null
ScpTimestampCommandDetails
value with the timestamps converted to
millisecondsNumberFormatException
- if bad numerical values - Note: validates that 1st character is 'T'.Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.