Class WindowsFileStat
- java.lang.Object
-
- net.rubygrapefruit.platform.internal.WindowsFileStat
-
- All Implemented Interfaces:
FileInfo,WindowsFileInfo
public class WindowsFileStat extends java.lang.Object implements WindowsFileInfo
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.rubygrapefruit.platform.FileInfo
FileInfo.Type
-
-
Constructor Summary
Constructors Constructor Description WindowsFileStat(java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetails(int type, long size, long lastModifiedWinTime)longgetLastModifiedTime()Returns the last modification time of this file, in ms since epoch.longgetSize()Returns the size of this file, in bytes.FileInfo.TypegetType()Returns the type of this file.java.lang.StringtoString()
-
-
-
Method Detail
-
details
public void details(int type, long size, long lastModifiedWinTime)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getType
public FileInfo.Type getType()
Description copied from interface:FileInfoReturns the type of this file.
-
getSize
public long getSize()
Description copied from interface:FileInfoReturns the size of this file, in bytes. Returns 0 when this file is not a regular file.
-
getLastModifiedTime
public long getLastModifiedTime()
Description copied from interface:FileInfoReturns the last modification time of this file, in ms since epoch. Returns 0 when this file does not exist.- Specified by:
getLastModifiedTimein interfaceFileInfo
-
-