java.lang.Object
io.qt.QtObject
io.qt.core.QFileInfo
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
OS-independent API to retrieve information about file system entries
Java wrapper for Qt class QFileInfo
-
Constructor Summary
ConstructorDescriptionQFileInfo
(QFileDevice file) Overloaded constructor forQFileInfo(io.qt.core.QDir, java.lang.String)
. -
Method Summary
Modifier and TypeMethodDescriptionfinal QDir
final String
final String
final void
final String
baseName()
final QDateTime
final QDateTime
final String
final boolean
caching()
final String
final String
clone()
Creates and returns a copy of this object.final String
final String
final QDir
dir()
final boolean
boolean
final boolean
exists()
static boolean
final String
fileName()
final String
filePath()
final QDateTime
fileTime
(QFileDevice.FileTime time) final QDateTime
fileTime
(QFileDevice.FileTime time, QTimeZone tz) final String
group()
final int
groupId()
int
hashCode()
Returns the objects's hash code computed byqHash(QFileInfo)
.final boolean
final boolean
isAlias()
final boolean
isBundle()
final boolean
isDir()
final boolean
final boolean
isFile()
final boolean
isHidden()
final boolean
final boolean
final boolean
final boolean
final boolean
isRoot()
final boolean
final boolean
final boolean
final boolean
final String
final QDateTime
final QDateTime
final QDateTime
lastRead()
final QDateTime
final boolean
final QDateTime
final QDateTime
final String
owner()
final int
ownerId()
final String
path()
final boolean
permission
(QFileDevice.Permission ... permissions) Overloaded function forpermission(io.qt.core.QFileDevice.Permissions)
.final boolean
permission
(QFileDevice.Permissions permissions) final QFileDevice.Permissions
final String
final void
refresh()
final void
setCaching
(boolean on) final void
final void
setFile
(QFileDevice file) final void
final void
Overloaded function forsetFile(io.qt.core.QDir, java.lang.String)
.final long
size()
final void
stat()
final String
suffix()
final void
final String
toString()
Seeoperator<<(QDebug,
QFileInfo) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QFileInfo
public QFileInfo() -
QFileInfo
- Parameters:
dir
-file
-
-
QFileInfo
- Parameters:
file
-
-
QFileInfo
- Parameters:
fileinfo
-
-
QFileInfo
- Parameters:
file
-
-
QFileInfo
Overloaded constructor for
QFileInfo(io.qt.core.QDir, java.lang.String)
.
-
-
Method Details
-
absoluteDir
- Returns:
-
absoluteFilePath
- Returns:
-
absolutePath
- Returns:
-
baseName
- Returns:
-
birthTime
- Returns:
-
birthTime
- Parameters:
tz
-- Returns:
- Since:
- This function was introduced in Qt 6.6.
-
bundleName
- Returns:
-
caching
- Returns:
-
canonicalFilePath
- Returns:
-
canonicalPath
- Returns:
-
completeBaseName
- Returns:
-
completeSuffix
- Returns:
-
dir
- Returns:
-
exists
- Returns:
-
fileName
- Returns:
-
filePath
- Returns:
-
fileTime
- Parameters:
time
-- Returns:
-
fileTime
- Parameters:
time
-tz
-- Returns:
- Since:
- This function was introduced in Qt 6.6.
-
group
- Returns:
-
groupId
- Returns:
-
isAbsolute
- Returns:
-
isAlias
- Returns:
- Since:
- This function was introduced in Qt 6.4.
-
isBundle
- Returns:
-
isDir
- Returns:
-
isExecutable
- Returns:
-
isFile
- Returns:
-
isHidden
- Returns:
-
isJunction
- Returns:
-
isNativePath
- Returns:
-
isReadable
- Returns:
-
isRelative
- Returns:
-
isRoot
- Returns:
-
isShortcut
- Returns:
-
isSymLink
- Returns:
-
isSymbolicLink
- Returns:
-
isWritable
- Returns:
-
junctionTarget
- Returns:
- Since:
- This function was introduced in Qt 6.2.
-
lastModified
- Returns:
-
lastModified
- Parameters:
tz
-- Returns:
- Since:
- This function was introduced in Qt 6.6.
-
lastRead
- Returns:
-
lastRead
- Parameters:
tz
-- Returns:
- Since:
- This function was introduced in Qt 6.6.
-
makeAbsolute
- Returns:
-
metadataChangeTime
- Returns:
-
metadataChangeTime
- Parameters:
tz
-- Returns:
- Since:
- This function was introduced in Qt 6.6.
-
assign
- Parameters:
fileinfo
-
-
equals
- Parameters:
fileinfo
-- Returns:
-
owner
- Returns:
-
ownerId
- Returns:
-
path
- Returns:
-
permission
- Parameters:
permissions
-- Returns:
-
permissions
- Returns:
-
readSymLink
- Returns:
- Since:
- This function was introduced in Qt 6.6.
-
refresh
-
setCaching
- Parameters:
on
-
-
setFile
- Parameters:
dir
-file
-
-
setFile
- Parameters:
file
-
-
setFile
- Parameters:
file
-
-
size
- Returns:
-
stat
- Since:
- This function was introduced in Qt 6.0.
-
suffix
- Returns:
-
swap
- Parameters:
other
-
-
symLinkTarget
- Returns:
-
exists
- Parameters:
file
-- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QFileInfo)
. -
toString
See
operator<<(QDebug,
QFileInfo) -
clone
Creates and returns a copy of this object.
-
permission
Overloaded function for
permission(io.qt.core.QFileDevice.Permissions)
. -
setFile
Overloaded function for
setFile(io.qt.core.QDir, java.lang.String)
.
-