- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<Object>
,Iterable<Byte>
Array of bytes
Java wrapper for Qt class QByteArray
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QByteArray::Base64DecodingStatusstatic enum
Java wrapper for Qt enum QByteArray::Base64Optionstatic final class
QFlags type for enumQByteArray.Base64Option
static class
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQByteArray
(byte[] data) QByteArray
(byte[] data, long size) QByteArray
(long size, byte c) QByteArray
(QByteArray arg__1) protected
Constructor for internal use only.QByteArray
(String s) QByteArray
(Buffer arg__1) Overloaded constructor forQByteArray(java.nio.Buffer, long)
withsize = -1
.QByteArray
(Buffer arg__1, long size) -
Method Summary
Modifier and TypeMethodDescriptionfinal QByteArray
append
(byte c) final QByteArray
append
(byte[] a) final QByteArray
append
(long count, byte c) final QByteArray
append
(QByteArray a) final QByteArray
final QByteArray
final QByteArray
final QByteArray
final byte
at
(long i) begin()
final long
capacity()
final void
chop
(long n) final QByteArray
chopped
(long len) final void
clear()
clone()
final int
compare
(byte[] b) final int
compare
(byte[] b, Qt.CaseSensitivity cs) final int
Overloaded function forcompare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
.final int
final int
final int
compare
(String str, Qt.CaseSensitivity cs) final int
final int
compare
(ByteBuffer b, Qt.CaseSensitivity cs) int
final boolean
contains
(byte c) final boolean
contains
(byte[] data) final boolean
final boolean
final boolean
contains
(ByteBuffer data) final long
count
(byte c) final long
count
(byte[] data) final long
count
(QByteArrayView bv) final long
final long
count
(ByteBuffer data) final ByteBuffer
data()
final void
detach()
end()
final boolean
endsWith
(byte c) final boolean
endsWith
(byte[] str) final boolean
final boolean
final boolean
endsWith
(ByteBuffer str) boolean
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.final QByteArray
fill
(byte c) Overloaded function forfill(byte, long)
withsize = -1
.final QByteArray
fill
(byte c, long size) final QByteArray
first
(long n) static QByteArray
fromBase64
(QByteArray base64) Overloaded function forfromBase64(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)
withoptions = new io.qt.core.QByteArray.Base64Options(0)
.static QByteArray
fromBase64
(QByteArray base64, QByteArray.Base64Option... options) Overloaded function forfromBase64(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)
.static QByteArray
fromBase64
(QByteArray base64, QByteArray.Base64Options options) static QByteArray.FromBase64Result
fromBase64Encoding
(QByteArray base64) Overloaded function forfromBase64Encoding(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)
withoptions = new io.qt.core.QByteArray.Base64Options(0)
.static QByteArray.FromBase64Result
fromBase64Encoding
(QByteArray base64, QByteArray.Base64Option... options) Overloaded function forfromBase64Encoding(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)
.static QByteArray.FromBase64Result
fromBase64Encoding
(QByteArray base64, QByteArray.Base64Options options) static QByteArray
fromHex
(QByteArray hexEncoded) static QByteArray
fromPercentEncoding
(QByteArray pctEncoded) Overloaded function forfromPercentEncoding(io.qt.core.QByteArray, byte)
withpercent = '%'
.static QByteArray
fromPercentEncoding
(QByteArray pctEncoded, byte percent) static QByteArray
fromRawData
(Buffer data, long size) int
hashCode()
final long
indexOf
(byte c) Overloaded function forindexOf(byte, long)
withfrom = 0
.final long
indexOf
(byte[] other) final long
indexOf
(byte[] other, long from) final long
indexOf
(byte c, long from) final long
indexOf
(QByteArray other) final long
indexOf
(QByteArray other, long from) final long
Overloaded function forindexOf(io.qt.core.QByteArrayView, long)
withfrom = 0
.final long
indexOf
(QByteArrayView bv, long from) final long
final long
final long
indexOf
(ByteBuffer other) final long
indexOf
(ByteBuffer other, long from) final QByteArray
insert
(long i, byte c) final QByteArray
insert
(long i, byte[] data) final QByteArray
insert
(long i, long count, byte c) final QByteArray
insert
(long i, QByteArray data) final QByteArray
insert
(long i, QByteArrayView data) final QByteArray
final QByteArray
final boolean
final boolean
isEmpty()
final boolean
isLower()
final boolean
isNull()
final boolean
isSharedWith
(QByteArray other) final boolean
isUpper()
final boolean
iterator()
static QByteArray
join
(Collection<QByteArray> stringList) static QByteArray
join
(Collection<QByteArray> stringList, byte sep) static QByteArray
join
(Collection<QByteArray> stringList, QByteArray sep) final QByteArray
last
(long n) final long
lastIndexOf
(byte c) Overloaded function forlastIndexOf(byte, long)
withfrom = -1
.final long
lastIndexOf
(byte[] other) final long
lastIndexOf
(byte[] other, long from) final long
lastIndexOf
(byte c, long from) final long
lastIndexOf
(QByteArray other) final long
lastIndexOf
(QByteArray other, long from) final long
final long
lastIndexOf
(QByteArrayView bv, long from) final long
lastIndexOf
(String strg) final long
lastIndexOf
(String strg, long from) final long
lastIndexOf
(ByteBuffer other) final long
lastIndexOf
(ByteBuffer other, long from) final QByteArray
left
(long len) final QByteArray
leftJustified
(long width) Overloaded function forleftJustified(long, byte, boolean)
final QByteArray
leftJustified
(long width, byte fill) Overloaded function forleftJustified(long, byte, boolean)
withtruncate = false
.final QByteArray
leftJustified
(long width, byte fill, boolean truncate) final long
length()
final QByteArray
mid
(long index) Overloaded function formid(long, long)
withlen = -1
.final QByteArray
mid
(long index, long len) static QByteArray
number
(double arg__1) Overloaded function fornumber(double, byte, int)
static QByteArray
number
(double arg__1, byte format) Overloaded function fornumber(double, byte, int)
withprecision = 6
.static QByteArray
number
(double arg__1, byte format, int precision) static QByteArray
number
(int arg__1) Overloaded function fornumber(int, int)
withbase = 10
.static QByteArray
number
(int arg__1, int base) static QByteArray
number
(long arg__1) Overloaded function fornumber(long, int)
withbase = 10
.static QByteArray
number
(long arg__1, int base) final QByteArray
prepend
(byte c) final QByteArray
prepend
(byte[] data) final QByteArray
prepend
(long count, byte c) final QByteArray
final QByteArray
final QByteArray
final QByteArray
final QByteArray
final void
final void
void
readFrom
(QDataStream arg__1) final QByteArray
remove
(long index, long len) final QByteArray
repeated
(long times) final QByteArray
replace
(byte before, byte after) final QByteArray
replace
(byte before, QByteArrayView after) final QByteArray
replace
(long index, long len, byte[] data) final QByteArray
replace
(long index, long len, QByteArrayView s) final QByteArray
final QByteArray
replace
(QByteArray before, String after) final QByteArray
replace
(QByteArrayView before, QByteArrayView after) final QByteArray
final QByteArray
final void
reserve
(long size) final void
resize
(long size) final QByteArray
right
(long len) final QByteArray
rightJustified
(long width) Overloaded function forrightJustified(long, byte, boolean)
final QByteArray
rightJustified
(long width, byte fill) Overloaded function forrightJustified(long, byte, boolean)
withtruncate = false
.final QByteArray
rightJustified
(long width, byte fill, boolean truncate) final QByteArray
set
(QByteArray arg__1) final QByteArray
final QByteArray
setNum
(double arg__1) Overloaded function forsetNum(double, char, int)
final QByteArray
setNum
(double arg__1, char format) Overloaded function forsetNum(double, char, int)
withprecision = 6
.final QByteArray
setNum
(double arg__1, char format, int precision) final QByteArray
setNum
(float arg__1) Overloaded function forsetNum(float, char, int)
final QByteArray
setNum
(float arg__1, char format) Overloaded function forsetNum(float, char, int)
withprecision = 6
.final QByteArray
setNum
(float arg__1, char format, int precision) final QByteArray
setNum
(int arg__1) Overloaded function forsetNum(int, int)
withbase = 10
.final QByteArray
setNum
(int arg__1, int base) final QByteArray
setNum
(long arg__1) Overloaded function forsetNum(long, int)
withbase = 10
.final QByteArray
setNum
(long arg__1, int base) final QByteArray
setNum
(short arg__1) Overloaded function forsetNum(short, int)
withbase = 10
.final QByteArray
setNum
(short arg__1, int base) protected final QByteArray
setRawData
(Buffer a, long n) final void
final QByteArray
final long
size()
final QByteArray
sliced
(long pos) final QByteArray
sliced
(long pos, long n) final QList<QByteArray>
split
(byte sep) final void
squeeze()
final boolean
startsWith
(byte c) final boolean
startsWith
(byte[] str) final boolean
final boolean
startsWith
(String str) final boolean
startsWith
(ByteBuffer str) final void
swap
(QByteArray other) final QByteArray
toBase64()
Overloaded function fortoBase64(io.qt.core.QByteArray.Base64Options)
withoptions = new io.qt.core.QByteArray.Base64Options(0)
.final QByteArray
toBase64
(QByteArray.Base64Option... options) Overloaded function fortoBase64(io.qt.core.QByteArray.Base64Options)
.final QByteArray
toBase64
(QByteArray.Base64Options options) final byte[]
final double
toDouble()
final float
toFloat()
final QByteArray
toHex()
Overloaded function fortoHex(byte)
withseparator = '\0'
.final QByteArray
toHex
(byte separator) final int
toInt()
Overloaded function fortoInt(int)
withbase = 10
.final int
toInt
(int base) final QByteArray
toLower()
final QByteArray
Overloaded function fortoPercentEncoding(io.qt.core.QByteArray, io.qt.core.QByteArray, byte)
final QByteArray
toPercentEncoding
(QByteArray exclude) Overloaded function fortoPercentEncoding(io.qt.core.QByteArray, io.qt.core.QByteArray, byte)
final QByteArray
toPercentEncoding
(QByteArray exclude, QByteArray include) Overloaded function fortoPercentEncoding(io.qt.core.QByteArray, io.qt.core.QByteArray, byte)
withpercent = '%'
.final QByteArray
toPercentEncoding
(QByteArray exclude, QByteArray include, byte percent) final short
toShort()
Overloaded function fortoShort(int)
withbase = 10
.final short
toShort
(int base) toString()
final QByteArray
toUpper()
final QByteArray
trimmed()
final void
truncate
(long pos) void
writeTo
(QDataStream arg__1) Methods inherited from class io.qt.QtObject
dispose, isDisposed
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
QByteArray
public QByteArray() -
QByteArray
-
QByteArray
Overloaded constructor for
QByteArray(java.nio.Buffer, long)
withsize = -1
. -
QByteArray
-
QByteArray
public QByteArray(long size, byte c) -
QByteArray
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QByteArray
public QByteArray(byte[] data) -
QByteArray
-
QByteArray
public QByteArray(byte[] data, long size)
-
-
Method Details
-
append
-
append
-
append
-
append
-
append
-
append
-
at
-
begin
-
capacity
-
chop
-
chopped
-
clear
-
compare
Overloaded function for
compare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
. -
compare
-
toByteArray
-
contains
-
contains
-
count
-
count
-
data
-
detach
-
end
-
endsWith
-
endsWith
-
fill
Overloaded function for
fill(byte, long)
withsize = -1
. -
fill
-
first
-
indexOf
Overloaded function for
indexOf(io.qt.core.QByteArrayView, long)
withfrom = 0
. -
indexOf
-
indexOf
Overloaded function for
indexOf(byte, long)
withfrom = 0
. -
indexOf
-
insert
-
insert
-
insert
-
insert
-
insert
-
insert
-
isDetached
-
isEmpty
-
isLower
-
isNull
-
isUpper
-
isValidUtf8
-
last
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
Overloaded function for
lastIndexOf(byte, long)
withfrom = -1
. -
lastIndexOf
-
left
-
leftJustified
Overloaded function for
leftJustified(long, byte, boolean)
withtruncate = false
. -
leftJustified
-
leftJustified
-
length
-
mid
Overloaded function for
mid(long, long)
withlen = -1
. -
mid
-
writeTo
-
set
-
set
-
readFrom
-
prepend
-
prepend
-
prepend
-
prepend
-
prepend
-
prepend
-
push_back
-
push_front
-
remove
-
repeated
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
reserve
-
resize
-
right
-
rightJustified
Overloaded function for
rightJustified(long, byte, boolean)
withtruncate = false
. -
rightJustified
-
rightJustified
-
setNum
Overloaded function for
setNum(double, char, int)
withprecision = 6
. -
setNum
-
setNum
-
setNum
Overloaded function for
setNum(float, char, int)
withprecision = 6
. -
setNum
-
setNum
-
setNum
Overloaded function for
setNum(int, int)
withbase = 10
. -
setNum
-
setNum
Overloaded function for
setNum(long, int)
withbase = 10
. -
setNum
-
setNum
Overloaded function for
setNum(short, int)
withbase = 10
. -
setNum
-
setRawData
-
shrink_to_fit
-
simplified
-
size
-
sliced
-
sliced
-
split
-
squeeze
-
startsWith
-
startsWith
-
swap
-
toBase64
Overloaded function for
toBase64(io.qt.core.QByteArray.Base64Options)
. -
toBase64
Overloaded function for
toBase64(io.qt.core.QByteArray.Base64Options)
withoptions = new io.qt.core.QByteArray.Base64Options(0)
. -
toBase64
-
toDouble
- Throws:
NumberFormatException
-
toFloat
- Throws:
NumberFormatException
-
toHex
Overloaded function for
toHex(byte)
withseparator = '\0'
. -
toHex
-
toInt
Overloaded function for
toInt(int)
withbase = 10
.- Throws:
NumberFormatException
-
toInt
- Throws:
NumberFormatException
-
toLower
-
toPercentEncoding
Overloaded function for
toPercentEncoding(io.qt.core.QByteArray, io.qt.core.QByteArray, byte)
withpercent = '%'
. -
toPercentEncoding
Overloaded function for
toPercentEncoding(io.qt.core.QByteArray, io.qt.core.QByteArray, byte)
with:
include = new io.qt.core.QByteArray()
percent = '%'
-
toPercentEncoding
Overloaded function for
toPercentEncoding(io.qt.core.QByteArray, io.qt.core.QByteArray, byte)
with:
exclude = new io.qt.core.QByteArray()
include = new io.qt.core.QByteArray()
percent = '%'
-
toPercentEncoding
@QtUninvokable public final QByteArray toPercentEncoding(QByteArray exclude, QByteArray include, byte percent) -
toShort
Overloaded function for
toShort(int)
withbase = 10
.- Throws:
NumberFormatException
-
toShort
- Throws:
NumberFormatException
-
toUpper
-
trimmed
-
truncate
-
fromBase64
Overloaded function for
fromBase64(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)
. -
fromBase64
Overloaded function for
fromBase64(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)
withoptions = new io.qt.core.QByteArray.Base64Options(0)
. -
fromBase64
-
fromBase64Encoding
public static QByteArray.FromBase64Result fromBase64Encoding(QByteArray base64, QByteArray.Base64Option... options) Overloaded function for
fromBase64Encoding(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)
. -
fromBase64Encoding
Overloaded function for
fromBase64Encoding(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)
withoptions = new io.qt.core.QByteArray.Base64Options(0)
. -
fromBase64Encoding
public static QByteArray.FromBase64Result fromBase64Encoding(QByteArray base64, QByteArray.Base64Options options) -
fromHex
-
fromPercentEncoding
Overloaded function for
fromPercentEncoding(io.qt.core.QByteArray, byte)
withpercent = '%'
. -
fromPercentEncoding
-
fromRawData
-
number
Overloaded function for
number(double, byte, int)
withprecision = 6
. -
number
-
number
-
number
Overloaded function for
number(int, int)
withbase = 10
. -
number
-
number
Overloaded function for
number(long, int)
withbase = 10
. -
number
-
iterator
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
compareTo
- Specified by:
compareTo
in interfaceComparable<Object>
-
hashCode
-
toString
-
prepend
-
join
-
join
-
join
-
contains
-
count
-
endsWith
-
endsWith
-
endsWith
-
prepend
-
startsWith
-
startsWith
-
startsWith
-
append
-
append
-
compare
-
compare
-
count
-
contains
-
compare
-
compare
-
count
-
contains
-
compare
-
compare
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
replace
-
insert
-
replace
-
replace
-
clone
-