public interface CommonFileInfo extends CommonFile, CommonHandle
FILE-INFO attribute or method | API |
---|---|
FILE-CREATE-DATE | fileInfoGetCreationDate() |
FILE-CREATE-TIME | fileInfoGetCreationTime() |
FILE-MOD-DATE | fileInfoGetModDate() |
FILE-MOD-TIME | fileInfoGetModTime() |
FILE-NAME | CommonFile.initFileInfo(character) , CommonFile.initFileInfo(String) and
CommonFile.getFileName()
|
FILE-SIZE | fileInfoGetSize() |
FILE-TYPE | fileInfoGetType() |
FULL-PATHNAME | fileInfoGetFullPath() |
PATHNAME | fileInfoGetPathName() |
handle.unwrapFileInfo()
API, which, depending on the
handle's state, it either returns an FileSystemOps.asHandle()
instance or a dynamic proxy using handle.invalidAttrAccessProxy
.Modifier and Type | Method and Description |
---|---|
date |
fileInfoGetCreationDate()
If the current file information data structures are initialized, return
the file's creation date, otherwise return the
unknown value . |
integer |
fileInfoGetCreationTime()
If the current file information data structures are initialized, return
the file's creation time (in seconds from midnight), otherwise
return the
unknown value . |
character |
fileInfoGetFullPath()
If the current file information data structures are initialized, return
the absolute (canonicalized) path name, otherwise return the
unknown value . |
date |
fileInfoGetModDate()
If the current file information data structures are initialized, return
the file's last modification date, otherwise return the
unknown value . |
integer |
fileInfoGetModTime()
If the current file information data structures are initialized, return
the file's last modification time (in seconds from midnight), otherwise
return the
unknown value . |
character |
fileInfoGetPathName()
If the current file information data structures are initialized, return
the absolute or relative path name, otherwise return the
unknown value . |
integer |
fileInfoGetSize()
If the current file information data structures are initialized, return
the file's size, otherwise return the
unknown value . |
character |
fileInfoGetType()
If the current file information data structures are initialized, return
a string with characters that specify attributes about the file,
otherwise return the
unknown value . |
getFileName, initFileInfo, initFileInfo
getResourceType, readOnlyError
id, id, unknown, valid
character fileInfoGetPathName()
unknown value
. If the specified file name was absolute,
then an absolute pathname will be returned. Otherwise the relative
path that was found via FileSystemOps.searchPath(com.goldencode.p2j.util.character)
will be
returned.unknown value
if the data structures were never
initialized or if initialization failed.character fileInfoGetFullPath()
unknown value
.unknown value
if the data structures were
never initialized or if initialization failed.integer fileInfoGetSize()
unknown value
.unknown value
if the data structures were never
initialized or if initialization failed.character fileInfoGetType()
unknown value
.
One of the following mutually exclusive characters will be present:
Character Meaning --------- ----------------------------- D directory F file X unknown
There is no support for "S" (UNIX special devices) or "M" (procedure library members) at this time.
One or more of the following characters will be present:
Character Meaning --------- ----------------------------- H hidden R readable W writable
There is no support for "L" (UNIX symbolic links) or "P" (pipes) at this time.
unknown value
if the data structures were
never initialized or if initialization failed.date fileInfoGetModDate()
unknown value
.unknown value
if the data structures were
never initialized or if initialization failed.integer fileInfoGetModTime()
unknown value
.unknown value
if the data structures were never initialized or if
initialization failed.date fileInfoGetCreationDate()
unknown value
.unknown value
at this time.integer fileInfoGetCreationTime()
unknown value
.unknown value
at this time.