com.jniwrapper.win32.io
Class FileInfo

java.lang.Object
  extended bycom.jniwrapper.win32.io.FileInfo
Direct Known Subclasses:
FolderInfo

public class FileInfo
extends java.lang.Object

FileInfo class is a file information container.


Constructor Summary
FileInfo(java.lang.String fileName)
          Creates instance of the FileInfo class with specified file name.
FileInfo(java.lang.String fileName, long attributes, long size, long lastModified)
          Creates instance of the FileInfo class with specified file name, file attributes, file size end date of the last modification
 
Method Summary
 long getAttributes()
          Returns file attributes
 java.lang.String getFileName()
          Returns file name
 long getLastModified()
          Returns date of the last modification
 long getSize()
          Returns file size
 java.lang.String toString()
          Returns string representation of the object - name of the file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileInfo

public FileInfo(java.lang.String fileName,
                long attributes,
                long size,
                long lastModified)
Creates instance of the FileInfo class with specified file name, file attributes, file size end date of the last modification

Parameters:
fileName - File name
attributes - File attributes
size - File size
lastModified - The date of last modification

FileInfo

public FileInfo(java.lang.String fileName)
Creates instance of the FileInfo class with specified file name.

Parameters:
fileName - File name
Method Detail

getFileName

public java.lang.String getFileName()
Returns file name

Returns:
The file name

getAttributes

public long getAttributes()
Returns file attributes

Returns:
The file attributes

getSize

public long getSize()
Returns file size

Returns:
File size

getLastModified

public long getLastModified()
Returns date of the last modification

Returns:
Date of the last modification

toString

public java.lang.String toString()
Returns string representation of the object - name of the file

Returns:
String representation of the object - name of the file