Package org.apache.sshd.common.scp
Class ScpTimestamp
- java.lang.Object
-
- org.apache.sshd.common.scp.ScpTimestamp
-
public class ScpTimestamp extends java.lang.ObjectRepresents an SCP timestamp definition
-
-
Field Summary
Fields Modifier and Type Field Description private longlastAccessTimeprivate longlastModifiedTime
-
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 longgetLastAccessTime()longgetLastModifiedTime()static ScpTimestampparseTime(java.lang.String line)java.lang.StringtoString()
-
-
-
Method Detail
-
getLastModifiedTime
public long getLastModifiedTime()
-
getLastAccessTime
public long getLastAccessTime()
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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
ScpTimestampvalue 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
-
-