- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<Object>
,Iterable<@QtPrimitiveType Byte>
Array of bytes
Java wrapper for Qt class QByteArray
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQByteArray::Base64DecodingStatus
static enum
Java wrapper for Qt enumQByteArray::Base64Option
static final class
QFlags
type for enumQByteArray.Base64Option
static class
Result class forfromBase64Encoding(QByteArray, QByteArray.Base64Options)
static interface
Java wrapper for Qt callablestd::function<bool(char)>
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorDescriptionQByteArray
(byte[] data) QByteArray
(byte[] data, int size) QByteArray
(int size, byte c) QByteArray
(QByteArray arg__1) QByteArray
(Buffer arg__1) Overloaded constructor forQByteArray(java.nio.Buffer, int)
withsize = -1
.QByteArray
(Buffer arg__1, int size) QByteArray
(String s) -
Method Summary
Modifier and TypeMethodDescriptionfinal QByteArray
append
(byte c) final QByteArray
append
(byte[] a) final QByteArray
append
(byte[] a, int size) final QByteArray
append
(int count, byte c) final QByteArray
append
(QByteArray a) final QByteArray
final QByteArray
final QByteArray
final void
assign
(byte[] data) final void
assign
(QByteArray arg__1) final void
final void
final byte
at
(int i) final byte
back()
final int
capacity()
final void
chop
(int n) final QByteArray
chopped
(int len) final void
clear()
clone()
Creates and returns a copy of this object.final int
compare
(byte[] b) Overloaded function forcompare(byte[], Qt.CaseSensitivity)
withcs = Qt.CaseSensitivity.CaseSensitive
.final int
compare
(byte[] b, Qt.CaseSensitivity cs) final int
Overloaded function forcompare(io.qt.core.QByteArray, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
.final int
compare
(QByteArray a, Qt.CaseSensitivity cs) final int
Overloaded function forcompare(java.nio.Buffer, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
.final int
compare
(Buffer c, Qt.CaseSensitivity cs) final int
Overloaded function forcompare(String, Qt.CaseSensitivity)
withcs = Qt.CaseSensitivity.CaseSensitive
.final int
compare
(String str, Qt.CaseSensitivity cs) int
Compares to other object depending on its type.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
final int
count
(byte c) final int
count
(byte[] data) final int
count
(QByteArray a) final int
final int
final ByteBuffer
data()
final void
detach()
SeeQByteArray::
detach() final boolean
endsWith
(byte c) final boolean
endsWith
(byte[] str) final boolean
final boolean
final boolean
boolean
Checks for equality depending on the type of given object.final QByteArray
fill
(byte c) Overloaded function forfill(byte, int)
withsize = -1
.final QByteArray
fill
(byte c, int size) static QByteArray
fromBase64
(QByteArray base64) 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 arg__1, int size) final byte
front()
final byte
get
(int i) int
hashCode()
Returns the objects's hash code computed byqHash(QByteArray)
.final int
indexOf
(byte c) Overloaded function forindexOf(byte, int)
withfrom = 0
.final int
indexOf
(byte c, int from) final int
Overloaded function forindexOf(io.qt.core.QByteArray, int)
withfrom = 0
.final int
indexOf
(QByteArray a, int from) final int
Overloaded function forindexOf(java.lang.String, int)
withfrom = 0
.final int
final int
Overloaded function forindexOf(java.nio.Buffer, int)
withfrom = 0
.final int
final QByteArray
insert
(int i, byte c) final QByteArray
insert
(int i, byte[] data) final QByteArray
insert
(int i, int count, byte c) final QByteArray
insert
(int i, QByteArray a) final QByteArray
final QByteArray
final QByteArray
final boolean
SeeQByteArray::
isDetached()const final boolean
isEmpty()
final boolean
isLower()
final boolean
isNull()
final boolean
isSharedWith
(QByteArray other) SeeQByteArray::
isSharedWith(QByteArray)const final boolean
isUpper()
iterator()
Returns an iterator for this iterable object.static QByteArray
join
(Collection<QByteArray> stringList) static QByteArray
join
(Collection<QByteArray> stringList, byte sep) static QByteArray
join
(Collection<QByteArray> stringList, QByteArray sep) final int
lastIndexOf
(byte c) Overloaded function forlastIndexOf(byte, int)
withfrom = -1
.final int
lastIndexOf
(byte c, int from) final int
Overloaded function forlastIndexOf(io.qt.core.QByteArray, int)
withfrom = -1
.final int
lastIndexOf
(QByteArray a, int from) final int
Overloaded function forlastIndexOf(java.lang.String, int)
withfrom = -1
.final int
lastIndexOf
(String s, int from) final int
Overloaded function forlastIndexOf(java.nio.Buffer, int)
withfrom = -1
.final int
lastIndexOf
(Buffer c, int from) final QByteArray
left
(int len) final QByteArray
leftJustified
(int width) Overloaded function forleftJustified(int, byte, boolean)
final QByteArray
leftJustified
(int width, byte fill) Overloaded function forleftJustified(int, byte, boolean)
withtruncate = false
.final QByteArray
leftJustified
(int width, byte fill, boolean truncate) final int
length()
final QByteArray
mid
(int index) Overloaded function formid(int, int)
withlen = -1
.final QByteArray
mid
(int index, int len) static QByteArray
number
(double arg__1) Overloaded function fornumber(double, byte, int)
static QByteArray
number
(double arg__1, byte f) Overloaded function fornumber(double, byte, int)
withprec = 6
.static QByteArray
number
(double arg__1, byte f, int prec) 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) Seeoperator+(QByteArray,
char) final QByteArray
plus
(QByteArray a2) Seeoperator+(QByteArray,
QByteArray) final QByteArray
Seeoperator+(QByteArray,
const char*) final QByteArray
prepend
(byte c) final QByteArray
prepend
(byte[] data) final QByteArray
prepend
(byte[] data, int size) final QByteArray
prepend
(int count, byte c) final QByteArray
final QByteArray
final QByteArray
final QByteArray
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) Seeoperator>>(QDataStream&,
QByteArray&) final QByteArray
remove
(int index, int len) final QByteArray
repeated
(int times) final QByteArray
replace
(byte[] before, byte[] after) final QByteArray
replace
(byte[] before, QByteArray after) final QByteArray
replace
(byte before, byte after) final QByteArray
replace
(byte before, QByteArray after) final QByteArray
final QByteArray
final QByteArray
replace
(int index, int len, byte[] data) final QByteArray
replace
(int index, int len, QByteArray s) final QByteArray
final QByteArray
final QByteArray
replace
(QByteArray before, QByteArray after) final QByteArray
replace
(QByteArray before, Buffer after) final QByteArray
replace
(String before, QByteArray after) final QByteArray
final QByteArray
final QByteArray
replace
(Buffer before, QByteArray after) final QByteArray
final QByteArray
replace
(QByteArray before, byte[] after) final QByteArray
replace
(QByteArray before, String after) final QByteArray
final void
reserve
(int size) final void
resize
(int size) final QByteArray
right
(int len) final QByteArray
rightJustified
(int width) Overloaded function forrightJustified(int, byte, boolean)
final QByteArray
rightJustified
(int width, byte fill) Overloaded function forrightJustified(int, byte, boolean)
withtruncate = false
.final QByteArray
rightJustified
(int width, byte fill, boolean truncate) final void
set
(byte[] data) Deprecated.final void
set
(int i, byte value) SeeQByteArray::
operator[](int) final void
set
(QByteArray arg__1) Deprecated.Useassign(io.qt.core.QByteArray)
instead.final void
Deprecated.Useassign(java.nio.Buffer)
instead.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 f) Overloaded function forsetNum(double, char, int)
withprec = 6
.final QByteArray
setNum
(double arg__1, char f, int prec) final QByteArray
setNum
(float arg__1) Overloaded function forsetNum(float, char, int)
final QByteArray
setNum
(float arg__1, char f) Overloaded function forsetNum(float, char, int)
withprec = 6
.final QByteArray
setNum
(float arg__1, char f, int prec) 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, int n) final void
final QByteArray
final int
size()
final QList<QByteArray>
split
(byte sep) final void
squeeze()
final boolean
startsWith
(byte c) final boolean
startsWith
(byte[] str) final boolean
final boolean
startsWith
(Buffer c) final boolean
startsWith
(String str) final void
swap
(QByteArray other) final QByteArray
toBase64()
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()
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()
Returns the string representation of the object given byQVariant(this).toString()
.final QByteArray
toUpper()
final QByteArray
trimmed()
final void
truncate
(int pos) void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QByteArray) 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, int)
withsize = -1
. -
QByteArray
-
QByteArray
public QByteArray(int size, byte c) -
QByteArray
public QByteArray(byte[] data) -
QByteArray
-
QByteArray
public QByteArray(byte[] data, int size)
-
-
Method Details
-
append
-
append
-
append
-
append
-
append
-
append
-
at
-
back
-
capacity
-
chop
-
chopped
-
clear
-
compare
Overloaded function for
compare(io.qt.core.QByteArray, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
. -
compare
-
compare
Overloaded function for
compare(java.nio.Buffer, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
. -
compare
-
constBegin
-
toByteArray
-
constEnd
-
contains
-
contains
-
contains
-
count
-
count
-
count
-
data
-
detach
See
QByteArray::
detach() -
endsWith
-
endsWith
-
endsWith
-
fill
Overloaded function for
fill(byte, int)
withsize = -1
. -
fill
-
front
-
indexOf
Overloaded function for
indexOf(byte, int)
withfrom = 0
. -
indexOf
-
indexOf
Overloaded function for
indexOf(io.qt.core.QByteArray, int)
withfrom = 0
. -
indexOf
-
indexOf
Overloaded function for
indexOf(java.lang.String, int)
withfrom = 0
. -
indexOf
-
indexOf
Overloaded function for
indexOf(java.nio.Buffer, int)
withfrom = 0
. -
indexOf
-
insert
-
insert
-
insert
-
insert
-
insert
-
insert
-
isDetached
See
QByteArray::
isDetached()const -
isEmpty
-
isLower
-
isNull
-
isUpper
-
lastIndexOf
Overloaded function for
lastIndexOf(byte, int)
withfrom = -1
. -
lastIndexOf
-
lastIndexOf
Overloaded function for
lastIndexOf(io.qt.core.QByteArray, int)
withfrom = -1
. -
lastIndexOf
-
lastIndexOf
Overloaded function for
lastIndexOf(java.lang.String, int)
withfrom = -1
. -
lastIndexOf
-
lastIndexOf
Overloaded function for
lastIndexOf(java.nio.Buffer, int)
withfrom = -1
. -
lastIndexOf
-
left
-
leftJustified
Overloaded function for
leftJustified(int, byte, boolean)
withtruncate = false
. -
leftJustified
-
leftJustified
-
length
-
mid
Overloaded function for
mid(int, int)
withlen = -1
. -
mid
-
plus
See
operator+(QByteArray,
char) -
plus
See
operator+(QByteArray,
QByteArray) -
plus
See
operator+(QByteArray,
const char*) -
writeTo
See
operator<<(QDataStream&,
QByteArray) -
set
Deprecated.Useassign(io.qt.core.QByteArray)
instead. -
assign
-
set
Deprecated.Useassign(java.nio.Buffer)
instead. -
assign
-
readFrom
See
operator>>(QDataStream&,
QByteArray&) -
get
-
set
See
QByteArray::
operator[](int) -
prepend
-
prepend
-
prepend
-
prepend
-
prepend
-
remove
-
repeated
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
reserve
-
resize
-
right
-
rightJustified
Overloaded function for
rightJustified(int, byte, boolean)
withtruncate = false
. -
rightJustified
-
rightJustified
-
setNum
Overloaded function for
setNum(double, char, int)
withprec = 6
. -
setNum
-
setNum
-
setNum
Overloaded function for
setNum(float, char, int)
withprec = 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
-
split
-
squeeze
-
startsWith
-
startsWith
-
startsWith
-
swap
-
toBase64
-
toBase64
Overloaded function for
toBase64(io.qt.core.QByteArray.Base64Options)
. -
toBase64
-
toDouble
- Throws:
NumberFormatException
-
toFloat
- Throws:
NumberFormatException
-
toHex
-
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
-
fromBase64
Overloaded function for
fromBase64(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)
. -
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)
withprec = 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
Returns an iterator for this iterable object.- Specified by:
iterator
in interfaceIterable<@QtPrimitiveType Byte>
- See Also:
-
equals
Checks for equality depending on the type of given object.
ckecked by toString
QByteArray::
operator==(QString)const
ckecked by toQByteArray
operator==(QByteArray,
QByteArray)
-
compareTo
Compares to other object depending on its type.
compared byString
QByteArray::
operator<(QString)const
compared byQByteArray
operator<(QByteArray,
QByteArray)
- Specified by:
compareTo
in interfaceComparable<Object>
-
hashCode
Returns the objects's hash code computed byqHash(QByteArray)
. -
toString
Returns the string representation of the object given byQVariant(this).toString()
. -
prepend
-
append
-
assign
-
assign
-
set
Deprecated.Useassign(io.qt.core.QByteArray)
instead. -
set
Deprecated.Useassign(String)
instead. -
join
-
join
-
join
-
prepend
-
append
-
count
-
contains
-
startsWith
-
startsWith
-
contains
-
count
-
endsWith
-
endsWith
-
prepend
-
replace
-
insert
-
replace
-
replace
-
replace
-
replace
-
replace
-
compare
Overloaded function for
compare(byte[], Qt.CaseSensitivity)
withcs = Qt.CaseSensitivity.CaseSensitive
. -
compare
-
compare
Overloaded function for
compare(String, Qt.CaseSensitivity)
withcs = Qt.CaseSensitivity.CaseSensitive
. -
compare
-
clone
Creates and returns a copy of this object.
-
assign(io.qt.core.QByteArray)
instead.