- All Implemented Interfaces:
QtObjectInterface,Cloneable,Comparable<Object>,Iterable<Byte>
Array of bytes
Java wrapper for Qt 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 classNested 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) protectedConstructor 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 QByteArrayappend(byte c) final QByteArrayappend(byte[] a) final QByteArrayappend(long count, byte c) final QByteArrayappend(QByteArray a) final QByteArrayfinal QByteArrayfinal QByteArrayfinal QByteArrayfinal byteat(long i) begin()final longcapacity()final voidchop(long n) final QByteArraychopped(long len) final voidclear()clone()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(String str, Qt.CaseSensitivity cs) final intfinal intcompare(ByteBuffer b, Qt.CaseSensitivity cs) intfinal booleancontains(byte c) final booleancontains(byte[] data) final booleanfinal booleanfinal booleancontains(ByteBuffer data) final longcount(byte c) final longcount(byte[] data) final longcount(QByteArrayView bv) final longfinal longcount(ByteBuffer data) final ByteBufferdata()final voiddetach()end()final booleanendsWith(byte c) final booleanendsWith(byte[] str) final booleanfinal booleanfinal booleanendsWith(ByteBuffer str) booleanUsed to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.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) 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 longindexOf(QByteArray other) final longindexOf(QByteArray other, long from) final longOverloaded function forindexOf(io.qt.core.QByteArrayView, long)withfrom = 0.final longindexOf(QByteArrayView bv, 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) 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 longlastIndexOf(QByteArray other) final longlastIndexOf(QByteArray other, long from) final longfinal longlastIndexOf(QByteArrayView bv, 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 QByteArrayprepend(byte c) final QByteArrayprepend(byte[] data) final QByteArrayprepend(long count, byte c) final QByteArrayfinal QByteArrayfinal QByteArrayfinal QByteArrayfinal QByteArrayfinal voidfinal voidvoidreadFrom(QDataStream arg__1) final QByteArrayremove(long index, long len) final QByteArrayrepeated(long times) final 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(QByteArray before, String after) final QByteArrayreplace(QByteArrayView before, QByteArrayView after) final QByteArrayfinal QByteArrayfinal voidreserve(long size) final voidresize(long size) 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 QByteArrayset(QByteArray arg__1) final QByteArrayfinal 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(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
-
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:QtObjectUsed 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:
compareToin 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
-