- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<Object>
,Iterable<@QtPrimitiveType Byte>
Array of bytes
Java wrapper for Qt's 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
Result class forfromBase64Encoding(QByteArray, QByteArray.Base64Options)
static interface
Java wrapper for Qt function pointer std::function<bool(char)>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) QByteArray
(Buffer arg__1) Overloaded constructor forinvalid @link
{@link #QByteArray(java.nio.@Nullable Buffer, long)
size = -1
.QByteArray
(Buffer arg__1, long size) protected
Constructor for internal use only.QByteArray
(String s) -
Method Summary
Modifier and TypeMethodDescriptionfinal QByteArray
append
(byte c) final QByteArray
append
(byte[] a) final QByteArray
append
(byte[] a, long size) final QByteArray
append
(long count, byte c) final QByteArray
append
(QByteArray a) final QByteArray
final QByteArray
final QByteArray
final QByteArray
final void
assign
(byte[] data) final void
assign
(QByteArray arg__1) final void
final void
final byte
at
(long i) final byte
back()
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
protected final QSequentialConstIterator<@QtPrimitiveType Byte>
protected final QSequentialConstIterator<@QtPrimitiveType Byte>
constEnd()
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()
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 the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.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) final byte
front()
final byte
get
(long i) 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
Overloaded function forindexOf(io.qt.core.QByteArrayView, long)
withfrom = 0
.final long
indexOf
(QByteArrayView bv, long from) final long
indexOf
(QByteArray other) final long
indexOf
(QByteArray other, 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()
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
final long
lastIndexOf
(QByteArrayView bv, long from) final long
lastIndexOf
(QByteArray other) final long
lastIndexOf
(QByteArray other, 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
plus
(byte a2) final QByteArray
plus
(QByteArray a2) final QByteArray
final QByteArray
prepend
(byte c) final QByteArray
prepend
(byte[] data) final QByteArray
prepend
(byte[] data, long size) final QByteArray
prepend
(long count, byte c) final QByteArray
final QByteArray
final QByteArray
final QByteArray
final QByteArray
final void
final void
static QByteArray
qCompress
(QByteArray data) Overloaded function forqCompress(io.qt.core.QByteArray, int)
withcompressionLevel = -1
.static QByteArray
qCompress
(QByteArray data, int compressionLevel) static QByteArray
qUncompress
(QByteArray data) void
readFrom
(QDataStream arg__1) final QByteArray
remove
(long index, long len) final QByteArray
removeIf
(QByteArray.Predicate pred) final QByteArray
repeated
(long times) final QByteArray
replace
(byte[] before, QByteArray after) final QByteArray
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
(QByteArrayView before, QByteArrayView after) final QByteArray
final QByteArray
replace
(QByteArray before, byte[] after) final QByteArray
replace
(QByteArray before, String after) final QByteArray
final QByteArray
replace
(String before, QByteArray after) 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 void
set
(byte[] data) Deprecated.final void
set
(long i, byte value) final void
set
(QByteArray arg__1) Deprecated.Useassign(io.qt.core.QByteArray)
instead.final void
Deprecated.Useinvalid @link
{@link #assign(java.nio.@Nullable Buffer)
final void
Deprecated.Useassign(String)
instead.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
invalid @link
{@link #QByteArray(java.nio.@Nullable Buffer, long)
size = -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
-
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.Useinvalid @link
{@link #assign(java.nio.@Nullable Buffer)
-
assign
-
readFrom
-
get
-
set
-
prepend
-
prepend
-
prepend
-
prepend
-
prepend
-
prepend
-
push_back
-
push_front
-
remove
-
removeIf
-
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
-
qCompress
Overloaded function for
qCompress(io.qt.core.QByteArray, int)
withcompressionLevel = -1
. -
qCompress
-
qUncompress
-
iterator
- Specified by:
iterator
in interfaceIterable<@QtPrimitiveType Byte>
-
equals
Description copied from class:QtObject
Used 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:
compareTo
in 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
-
prepend
-
startsWith
-
startsWith
-
startsWith
-
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
-
replace
-
replace
-
replace
-
replace
-
replace
-
clone
-
assign(io.qt.core.QByteArray)
instead.