Package org.apache.sshd.common.scp
Class ScpTimestamp
- java.lang.Object
-
- org.apache.sshd.common.scp.ScpTimestamp
-
public class ScpTimestamp extends java.lang.Object
Represents an SCP timestamp definition
-
-
Field Summary
Fields Modifier and Type Field Description private long
lastAccessTime
private long
lastModifiedTime
-
Constructor Summary
Constructors Constructor Description ScpTimestamp(long modTime, long accTime)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getLastAccessTime()
long
getLastModifiedTime()
static ScpTimestamp
parseTime(java.lang.String line)
java.lang.String
toString()
-
-
-
Method Detail
-
getLastModifiedTime
public long getLastModifiedTime()
-
getLastAccessTime
public long getLastAccessTime()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
parseTime
public static ScpTimestamp parseTime(java.lang.String line) throws java.lang.NumberFormatException
- Parameters:
line
- The time specification - format:T<mtime-sec> <mtime-micros> <atime-sec> <atime-micros>
where specified times are in seconds since UTC- Returns:
- The
ScpTimestamp
value with the timestamps converted to milliseconds - Throws:
java.lang.NumberFormatException
- if bad numerical values - Note: does not check if 1st character is 'T'.- See Also:
- How the SCP protocol works
-
-