public class FileInfo
extends java.lang.Object
Constructor and Description |
---|
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 |
Modifier and Type | Method and Description |
---|---|
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
|
public FileInfo(java.lang.String fileName, long attributes, long size, long lastModified)
FileInfo
class with specified file name,
file attributes, file size end date of the last modificationfileName
- File nameattributes
- File attributessize
- File sizelastModified
- The date of last modificationpublic FileInfo(java.lang.String fileName)
FileInfo
class with specified file name.fileName
- File namepublic java.lang.String getFileName()
public long getAttributes()
public long getSize()
public long getLastModified()
public java.lang.String toString()
toString
in class java.lang.Object