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 void
details(int type, long size, long lastModifiedWinTime)
long
getLastModifiedTime()
Returns the last modification time of this file, in ms since epoch.long
getSize()
Returns the size of this file, in bytes.FileInfo.Type
getType()
Returns the type of this file.java.lang.String
toString()
-
-
-
Method Detail
-
details
public void details(int type, long size, long lastModifiedWinTime)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getType
public FileInfo.Type getType()
Description copied from interface:FileInfo
Returns the type of this file.
-
getSize
public long getSize()
Description copied from interface:FileInfo
Returns 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:FileInfo
Returns the last modification time of this file, in ms since epoch. Returns 0 when this file does not exist.- Specified by:
getLastModifiedTime
in interfaceFileInfo
-
-