- All Implemented Interfaces:
QtObjectInterface,Cloneable,Comparable<Object>,Iterable<@QtPrimitiveType Byte>
Array of bytes
Java wrapper for Qt's class QByteArray
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumJava wrapper for Qt enum QByteArray::Base64DecodingStatusstatic enumJava wrapper for Qt enum QByteArray::Base64Optionstatic final classQFlags type for enumQByteArray.Base64Optionstatic classResult class forfromBase64Encoding(QByteArray, QByteArray.Base64Options)static interfaceJava wrapper for Qt function pointer std::function<bool(char)>Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor -
Constructor Summary
ConstructorsModifierConstructorDescriptionQByteArray(byte[] data) QByteArray(byte[] data, long size) QByteArray(long size, byte c) QByteArray(QByteArray arg__1) QByteArray(Buffer arg__1) Overloaded constructor forQByteArray(java.nio.Buffer, long)withsize = -1.QByteArray(Buffer arg__1, long size) protectedConstructor for internal use only.QByteArray(String s) -
Method Summary
Modifier and TypeMethodDescriptionfinal QByteArrayappend(byte c) final QByteArrayappend(byte[] a) final QByteArrayappend(byte[] a, long size) final QByteArrayappend(long count, byte c) final QByteArrayappend(QByteArray a) final QByteArrayfinal QByteArrayfinal QByteArrayfinal QByteArrayfinal voidassign(byte[] data) final voidassign(QByteArray arg__1) final voidfinal voidfinal byteat(long i) final byteback()final longcapacity()final voidchop(long n) final QByteArraychopped(long len) final voidclear()clone()Creates and returns a copy of this object.final intcompare(byte[] b) final intcompare(byte[] b, Qt.CaseSensitivity cs) final intOverloaded function forcompare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive.final intfinal intfinal intcompare(QByteArray b, Qt.CaseSensitivity cs) final intfinal intcompare(String str, Qt.CaseSensitivity cs) final intfinal intcompare(ByteBuffer b, Qt.CaseSensitivity cs) intprotected final QSequentialConstIterator<@QtPrimitiveType Byte>protected final QSequentialConstIterator<@QtPrimitiveType Byte>constEnd()final booleancontains(byte c) final booleancontains(byte[] data) final booleanfinal booleancontains(QByteArray data) final booleanfinal booleancontains(ByteBuffer data) final longcount(byte c) final longcount(byte[] data) final longcount(QByteArrayView bv) final longcount(QByteArray data) final longfinal longcount(ByteBuffer data) final ByteBufferdata()final voiddetach()final booleanendsWith(byte c) final booleanendsWith(byte[] str) final booleanfinal booleanendsWith(QByteArray str) final booleanfinal booleanendsWith(ByteBuffer str) booleanUsed to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final QByteArrayfill(byte c) Overloaded function forfill(byte, long)withsize = -1.final QByteArrayfill(byte c, long size) final QByteArrayfirst(long n) static QByteArrayfromBase64(QByteArray base64) Overloaded function forfromBase64(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)withoptions = new io.qt.core.QByteArray.Base64Options(0).static QByteArrayfromBase64(QByteArray base64, QByteArray.Base64Option ... options) Overloaded function forfromBase64(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options).static QByteArrayfromBase64(QByteArray base64, QByteArray.Base64Options options) static QByteArray.FromBase64ResultfromBase64Encoding(QByteArray base64) Overloaded function forfromBase64Encoding(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)withoptions = new io.qt.core.QByteArray.Base64Options(0).static QByteArray.FromBase64ResultfromBase64Encoding(QByteArray base64, QByteArray.Base64Option ... options) Overloaded function forfromBase64Encoding(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options).static QByteArray.FromBase64ResultfromBase64Encoding(QByteArray base64, QByteArray.Base64Options options) static QByteArrayfromHex(QByteArray hexEncoded) static QByteArrayfromPercentEncoding(QByteArray pctEncoded) Overloaded function forfromPercentEncoding(io.qt.core.QByteArray, byte)withpercent = '%'.static QByteArrayfromPercentEncoding(QByteArray pctEncoded, byte percent) static QByteArrayfromRawData(Buffer data, long size) final bytefront()final byteget(long i) inthashCode()final longindexOf(byte c) Overloaded function forindexOf(byte, long)withfrom = 0.final longindexOf(byte[] other) final longindexOf(byte[] other, long from) final longindexOf(byte c, long from) final longOverloaded function forindexOf(io.qt.core.QByteArrayView, long)withfrom = 0.final longindexOf(QByteArrayView bv, long from) final longindexOf(QByteArray other) final longindexOf(QByteArray other, long from) final longfinal longfinal longindexOf(ByteBuffer other) final longindexOf(ByteBuffer other, long from) final QByteArrayinsert(long i, byte c) final QByteArrayinsert(long i, byte[] data) final QByteArrayinsert(long i, long count, byte c) final QByteArrayinsert(long i, QByteArray data) final QByteArrayinsert(long i, QByteArrayView data) final QByteArrayfinal QByteArrayfinal booleanfinal booleanisEmpty()final booleanisLower()final booleanisNull()final booleanisSharedWith(QByteArray other) final booleanisUpper()final booleaniterator()static QByteArrayjoin(Collection<QByteArray> stringList) static QByteArrayjoin(Collection<QByteArray> stringList, byte sep) static QByteArrayjoin(Collection<QByteArray> stringList, QByteArray sep) static QByteArrayjoin(Collection<QByteArray> stringList, QByteArrayView sep) final QByteArraylast(long n) final longlastIndexOf(byte c) Overloaded function forlastIndexOf(byte, long)withfrom = -1.final longlastIndexOf(byte[] other) final longlastIndexOf(byte[] other, long from) final longlastIndexOf(byte c, long from) final longfinal longlastIndexOf(QByteArrayView bv, long from) final longlastIndexOf(QByteArray other) final longlastIndexOf(QByteArray other, long from) final longlastIndexOf(String strg) final longlastIndexOf(String strg, long from) final longlastIndexOf(ByteBuffer other) final longlastIndexOf(ByteBuffer other, long from) final QByteArrayleft(long len) final QByteArrayleftJustified(long width) Overloaded function forleftJustified(long, byte, boolean)final QByteArrayleftJustified(long width, byte fill) Overloaded function forleftJustified(long, byte, boolean)withtruncate = false.final QByteArrayleftJustified(long width, byte fill, boolean truncate) final longlength()final QByteArraymid(long index) Overloaded function formid(long, long)withlen = -1.final QByteArraymid(long index, long len) static QByteArraynumber(double arg__1) Overloaded function fornumber(double, byte, int)static QByteArraynumber(double arg__1, byte format) Overloaded function fornumber(double, byte, int)withprecision = 6.static QByteArraynumber(double arg__1, byte format, int precision) static QByteArraynumber(int arg__1) Overloaded function fornumber(int, int)withbase = 10.static QByteArraynumber(int arg__1, int base) static QByteArraynumber(long arg__1) Overloaded function fornumber(long, int)withbase = 10.static QByteArraynumber(long arg__1, int base) final QByteArrayOverloaded function forpercentDecoded(byte)withpercent = '%'.final QByteArraypercentDecoded(byte percent) final QByteArrayplus(byte a2) final QByteArrayplus(QByteArray a2) final QByteArrayfinal QByteArrayprepend(byte c) final QByteArrayprepend(byte[] data) final QByteArrayprepend(byte[] data, long size) final QByteArrayprepend(long count, byte c) final QByteArrayfinal QByteArrayfinal QByteArrayfinal QByteArrayfinal QByteArrayfinal voidfinal voidstatic QByteArrayqCompress(QByteArray data) Overloaded function forqCompress(io.qt.core.QByteArray, int)withcompressionLevel = -1.static QByteArrayqCompress(QByteArray data, int compressionLevel) static QByteArrayqUncompress(QByteArray data) voidreadFrom(QDataStream arg__1) final QByteArrayremove(long index, long len) final QByteArrayremoveAt(long pos) final QByteArrayfinal QByteArrayremoveIf(QByteArray.Predicate pred) final QByteArrayfinal QByteArrayrepeated(long times) final QByteArrayreplace(byte[] before, QByteArray after) final QByteArrayfinal QByteArrayreplace(byte before, byte after) final QByteArrayreplace(byte before, QByteArrayView after) final QByteArrayreplace(long index, long len, byte[] data) final QByteArrayreplace(long index, long len, QByteArrayView s) final QByteArrayfinal QByteArrayreplace(QByteArrayView before, QByteArrayView after) final QByteArrayfinal QByteArrayreplace(QByteArray before, byte[] after) final QByteArrayreplace(QByteArray before, String after) final QByteArrayfinal QByteArrayreplace(String before, QByteArray after) final QByteArrayfinal voidreserve(long size) final voidresize(long size) final voidresize(long size, byte c) final QByteArrayright(long len) final QByteArrayrightJustified(long width) Overloaded function forrightJustified(long, byte, boolean)final QByteArrayrightJustified(long width, byte fill) Overloaded function forrightJustified(long, byte, boolean)withtruncate = false.final QByteArrayrightJustified(long width, byte fill, boolean truncate) final voidset(byte[] data) Deprecated.final voidset(long i, byte value) final voidset(QByteArray arg__1) Deprecated.Useassign(io.qt.core.QByteArray)instead.final voidDeprecated.Useassign(java.nio.Buffer)instead.final voidDeprecated.Useassign(String)instead.final QByteArraysetNum(double arg__1) Overloaded function forsetNum(double, char, int)final QByteArraysetNum(double arg__1, char format) Overloaded function forsetNum(double, char, int)withprecision = 6.final QByteArraysetNum(double arg__1, char format, int precision) final QByteArraysetNum(float arg__1) Overloaded function forsetNum(float, char, int)final QByteArraysetNum(float arg__1, char format) Overloaded function forsetNum(float, char, int)withprecision = 6.final QByteArraysetNum(float arg__1, char format, int precision) final QByteArraysetNum(int arg__1) Overloaded function forsetNum(int, int)withbase = 10.final QByteArraysetNum(int arg__1, int base) final QByteArraysetNum(long arg__1) Overloaded function forsetNum(long, int)withbase = 10.final QByteArraysetNum(long arg__1, int base) final QByteArraysetNum(short arg__1) Overloaded function forsetNum(short, int)withbase = 10.final QByteArraysetNum(short arg__1, int base) protected final QByteArraysetRawData(Buffer a, long n) final voidfinal QByteArrayfinal longsize()final QByteArraysliced(long pos) final QByteArraysliced(long pos, long n) final QList<QByteArray>split(byte sep) final voidsqueeze()final booleanstartsWith(byte c) final booleanstartsWith(byte[] str) final booleanfinal booleanstartsWith(QByteArray str) final booleanstartsWith(String str) final booleanstartsWith(ByteBuffer str) final voidswap(QByteArray other) final QByteArraytoBase64()Overloaded function fortoBase64(io.qt.core.QByteArray.Base64Options)withoptions = new io.qt.core.QByteArray.Base64Options(0).final QByteArraytoBase64(QByteArray.Base64Option ... options) Overloaded function fortoBase64(io.qt.core.QByteArray.Base64Options).final QByteArraytoBase64(QByteArray.Base64Options options) final byte []final doubletoDouble()final floattoFloat()final QByteArraytoHex()Overloaded function fortoHex(byte)withseparator = '\0'.final QByteArraytoHex(byte separator) final inttoInt()Overloaded function fortoInt(int)withbase = 10.final inttoInt(int base) final QByteArraytoLower()final QByteArrayOverloaded function fortoPercentEncoding(io.qt.core.QByteArray, io.qt.core.QByteArray, byte)final QByteArraytoPercentEncoding(QByteArray exclude) Overloaded function fortoPercentEncoding(io.qt.core.QByteArray, io.qt.core.QByteArray, byte)final QByteArraytoPercentEncoding(QByteArray exclude, QByteArray include) Overloaded function fortoPercentEncoding(io.qt.core.QByteArray, io.qt.core.QByteArray, byte)withpercent = '%'.final QByteArraytoPercentEncoding(QByteArray exclude, QByteArray include, byte percent) final shorttoShort()Overloaded function fortoShort(int)withbase = 10.final shorttoShort(int base) toString()final QByteArraytoUpper()final QByteArraytrimmed()final voidtruncate(long pos) voidwriteTo(QDataStream arg__1) Methods inherited from class io.qt.QtObject
dispose, isDisposedMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-
back
-
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
-
constBegin
-
toByteArray
-
constEnd
-
contains
-
contains
-
count
-
count
-
data
-
detach
-
endsWith
-
endsWith
-
fill
Overloaded function for
fill(byte, long)withsize = -1. -
fill
-
first
-
front
-
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
-
plus
-
plus
-
plus
-
writeTo
-
set
Deprecated.Useassign(io.qt.core.QByteArray)instead. -
assign
-
set
Deprecated.Useassign(java.nio.Buffer)instead. -
assign
-
readFrom
-
get
-
set
-
percentDecoded
Overloaded function for
percentDecoded(byte)withpercent = '%'. -
percentDecoded
-
prepend
-
prepend
-
prepend
-
prepend
-
prepend
-
prepend
-
push_back
-
push_front
-
remove
-
removeAt
-
removeFirst
-
removeIf
-
removeLast
-
repeated
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
reserve
-
resize
-
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
-
qCompress
Overloaded function for
qCompress(io.qt.core.QByteArray, int)withcompressionLevel = -1. -
qCompress
-
qUncompress
-
iterator
- Specified by:
iteratorin interfaceIterable<@QtPrimitiveType Byte>
-
equals
Description copied from class:QtObjectUsed to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
compareTo
- Specified by:
compareToin interfaceComparable<Object>
-
hashCode
-
toString
-
prepend
-
append
-
assign
-
assign
-
set
Deprecated.Useassign(io.qt.core.QByteArray)instead. -
set
Deprecated.Useassign(String)instead. -
join
-
join
-
join
-
prepend
-
append
-
contains
-
count
-
endsWith
-
endsWith
-
endsWith
-
endsWith
-
prepend
-
startsWith
-
startsWith
-
startsWith
-
startsWith
-
append
-
compare
-
compare
-
count
-
contains
-
compare
-
compare
-
compare
-
compare
-
count
-
count
-
contains
-
contains
-
compare
-
compare
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
replace
-
insert
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
join
-
clone
Creates and returns a copy of this object.
-
assign(io.qt.core.QByteArray)instead.