- All Implemented Interfaces:
QtObjectInterface
Interface for reading directly from resources
Java wrapper for Qt class QResource
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionOverloaded constructor forQResource(java.lang.String, io.qt.core.QLocale)
Overloaded constructor forQResource(java.lang.String, io.qt.core.QLocale)
withlocale = new io.qt.core.QLocale()
.QResource
(String file, QLocale.Language locale) Overloaded constructor forQResource(java.lang.String, io.qt.core.QLocale)
.Overloaded constructor forQResource(java.lang.String, io.qt.core.QLocale)
. -
Method Summary
Modifier and TypeMethodDescriptionfinal String
static void
addClassPath
(String path) Addspath
to the set of classpaths in which QtJambi should search for resources.static void
addSearchPath
(String path) protected final QStringList
children()
final QResource.Compression
final ByteBuffer
data()
final String
fileName()
final boolean
protected final boolean
isDir()
protected final boolean
isFile()
final boolean
isValid()
final QDateTime
final QLocale
locale()
static boolean
registerResource
(String rccFilename) Overloaded function forregisterResource(java.lang.String, java.lang.String)
withresourceRoot = (String)null
.static boolean
registerResource
(String rccFilename, String resourceRoot) static boolean
registerResource
(ByteBuffer rccData) Overloaded function forregisterResource(java.nio.ByteBuffer, java.lang.String)
withresourceRoot = (String)null
.static boolean
registerResource
(ByteBuffer rccData, String resourceRoot) static void
removeClassPath
(String path) Removespath
from the set of classpaths in which QtJambi searches for resources.static QStringList
final void
setFileName
(String file) final void
final void
setLocale
(QLocale.Language locale) Overloaded function forsetLocale(io.qt.core.QLocale)
.final void
Overloaded function forsetLocale(io.qt.core.QLocale)
.final long
size()
final QByteArray
final long
static boolean
unregisterResource
(String rccFilename) Overloaded function forunregisterResource(java.lang.String, java.lang.String)
withresourceRoot = (String)null
.static boolean
unregisterResource
(String rccFilename, String resourceRoot) static boolean
unregisterResource
(ByteBuffer rccData) Overloaded function forunregisterResource(java.nio.ByteBuffer, java.lang.String)
withresourceRoot = (String)null
.static boolean
unregisterResource
(ByteBuffer rccData, String resourceRoot) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QResource
-
QResource
Overloaded constructor for
QResource(java.lang.String, io.qt.core.QLocale)
withlocale = new io.qt.core.QLocale()
. -
QResource
public QResource()Overloaded constructor for
QResource(java.lang.String, io.qt.core.QLocale)
with:
file = (String)null
locale = new io.qt.core.QLocale()
-
QResource
Overloaded constructor for
QResource(java.lang.String, io.qt.core.QLocale)
. -
QResource
Overloaded constructor for
QResource(java.lang.String, io.qt.core.QLocale)
.
-
-
Method Details
-
absoluteFilePath
-
children
-
compressionAlgorithm
-
data
-
fileName
-
isCompressed
-
isDir
-
isFile
-
isValid
-
lastModified
-
locale
-
setFileName
-
setLocale
-
size
-
uncompressedData
-
uncompressedSize
-
addSearchPath
-
registerResource
-
registerResource
-
searchPaths
-
unregisterResource
-
unregisterResource
-
addClassPath
Addspath
to the set of classpaths in which QtJambi should search for resources. -
removeClassPath
Removespath
from the set of classpaths in which QtJambi searches for resources. -
setLocale
Overloaded function for
setLocale(io.qt.core.QLocale)
. -
setLocale
Overloaded function for
setLocale(io.qt.core.QLocale)
. -
registerResource
Overloaded function for
registerResource(java.lang.String, java.lang.String)
withresourceRoot = (String)null
. -
registerResource
Overloaded function for
registerResource(java.nio.ByteBuffer, java.lang.String)
withresourceRoot = (String)null
. -
unregisterResource
Overloaded function for
unregisterResource(java.lang.String, java.lang.String)
withresourceRoot = (String)null
. -
unregisterResource
Overloaded function for
unregisterResource(java.nio.ByteBuffer, java.lang.String)
withresourceRoot = (String)null
.
-