java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QResource
- All Implemented Interfaces:
QtObjectInterface
Interface for reading directly from resources
Java wrapper for Qt's class QResource
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionOverloaded constructor forQResource(java.lang.String, io.qt.core.QLocale)
protected
Constructor for internal use only.Overloaded constructor forQResource(java.lang.String, io.qt.core.QLocale)
withlocale = new io.qt.core.QLocale()
. -
Method Summary
Modifier and TypeMethodDescriptionfinal String
static void
addClassPath
(String path) Addspath
to the set of classpaths in which Qt Jambi should search for resources.static void
addSearchPath
(String path) Deprecated.protected final QStringList
children()
final QResource.Compression
final ByteBuffer
data()
final String
fileName()
final boolean
Deprecated.UsecompressionAlgorithm()
insteadprotected 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 Qt Jambi searches for resources.static QStringList
Deprecated.UseQDir.searchPaths(java.lang.String)
insteadfinal void
setFileName
(String file) final void
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
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
-
QResource
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
absoluteFilePath
-
children
-
compressionAlgorithm
-
data
-
fileName
-
isCompressed
Deprecated.UsecompressionAlgorithm()
instead -
isDir
-
isFile
-
isValid
-
lastModified
-
locale
-
setFileName
-
setLocale
-
size
-
uncompressedData
-
uncompressedSize
-
addSearchPath
Deprecated. -
registerResource
Overloaded function for
registerResource(java.lang.String, java.lang.String)
withresourceRoot = (String)null
. -
registerResource
-
registerResource
Overloaded function for
registerResource(java.nio.ByteBuffer, java.lang.String)
withresourceRoot = (String)null
. -
registerResource
-
searchPaths
Deprecated.UseQDir.searchPaths(java.lang.String)
instead -
unregisterResource
Overloaded function for
unregisterResource(java.lang.String, java.lang.String)
withresourceRoot = (String)null
. -
unregisterResource
-
unregisterResource
Overloaded function for
unregisterResource(java.nio.ByteBuffer, java.lang.String)
withresourceRoot = (String)null
. -
unregisterResource
-
addClassPath
Addspath
to the set of classpaths in which Qt Jambi should search for resources. -
removeClassPath
Removespath
from the set of classpaths in which Qt Jambi searches for resources.
-
QDir.addSearchPath(java.lang.String, java.lang.String)
instead