- 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)
. -
Method Summary
Modifier and TypeMethodDescriptionfinal String
static void
addClassPath
(String path) Addspath
to the set of classpaths in which QtJambi should search for resources.protected final QStringList
children()
final QResource.Compression
final ByteBuffer
data()
final String
fileName()
protected final boolean
isDir()
protected final boolean
isFile()
final boolean
isValid()
final QDateTime
final QLocale
locale()
static boolean
registerResource
(byte [] rccData) Overloaded function forregisterResource(byte[], java.lang.String)
withresourceRoot = (String)null
.static boolean
registerResource
(byte [] rccData, String resourceRoot) Overloaded function forregisterResource(java.nio.ByteBuffer, java.lang.String)
.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.final void
setFileName
(String file) final void
final void
setLocale
(QLocale.Language locale) Overloaded function forsetLocale(io.qt.core.QLocale)
.final long
size()
final QByteArray
final long
static boolean
unregisterResource
(byte [] rccData) Overloaded function forunregisterResource(byte[], java.lang.String)
withresourceRoot = (String)null
.static boolean
unregisterResource
(byte [] rccData, String resourceRoot) Overloaded function forunregisterResource(java.nio.ByteBuffer, java.lang.String)
.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)
.
-
-
Method Details
-
absoluteFilePath
-
children
-
compressionAlgorithm
-
data
-
fileName
-
isDir
-
isFile
-
isValid
-
lastModified
-
locale
-
setFileName
-
setLocale
-
size
-
uncompressedData
-
uncompressedSize
-
registerResource
-
registerResource
-
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)
. -
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
. -
registerResource
public static boolean registerResource(byte [] rccData) Overloaded function for
registerResource(byte[], java.lang.String)
withresourceRoot = (String)null
. -
registerResource
Overloaded function for
registerResource(java.nio.ByteBuffer, java.lang.String)
. -
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
. -
unregisterResource
public static boolean unregisterResource(byte [] rccData) Overloaded function for
unregisterResource(byte[], java.lang.String)
withresourceRoot = (String)null
. -
unregisterResource
Overloaded function for
unregisterResource(java.nio.ByteBuffer, java.lang.String)
.
-