- 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, int size) QByteArray
(int 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, int)
withsize = -1
.QByteArray
(Buffer arg__1, int size) -
Method Summary
Modifier and TypeMethodDescriptionfinal QByteArray
append
(byte c) final QByteArray
append
(int count, byte c) final QByteArray
append
(QByteArray a) final QByteArray
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()final QByteArray
final QByteArray
final byte
at
(int i) begin()
final int
capacity()
final void
chop
(int n) final QByteArray
chopped
(int 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.QByteArray, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
.final int
compare
(QByteArray a, Qt.CaseSensitivity cs) final int
final int
compare
(String str, 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) int
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()
end()
final boolean
endsWith
(byte c) final boolean
final boolean
final boolean
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, 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) int
hashCode()
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
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()final int
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()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
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()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 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
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()final int
lastIndexOf
(String s, int from) Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()final QByteArray
Overloaded function forlastIndexOf(java.nio.Buffer, int)
withfrom = -1
.final QByteArray
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
prepend
(byte c) final QByteArray
prepend
(byte[] data) final QByteArray
prepend
(int count, byte c) final QByteArray
final QByteArray
final QByteArray
final QByteArray
void
readFrom
(QDataStream arg__1) 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
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()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, String after) final QByteArray
replace
(QByteArray before, Buffer after) final QByteArray
replace
(String before, QByteArray after) Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()final QByteArray
final QByteArray
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()final QByteArray
final QByteArray
replace
(Buffer before, QByteArray 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 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 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
final boolean
startsWith
(String str) final boolean
startsWith
(Buffer c) 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()
final QByteArray
toUpper()
final QByteArray
trimmed()
final void
truncate
(int 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, int)
withsize = -1
. -
QByteArray
-
QByteArray
public QByteArray(int 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, int size)
-
-
Method Details
-
append
-
append
-
append
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit() -
append
-
append
-
append
-
at
-
begin
-
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
-
toByteArray
-
contains
-
contains
-
contains
-
count
-
count
-
count
-
data
-
detach
-
end
-
endsWith
-
endsWith
-
endsWith
-
fill
Overloaded function for
fill(byte, int)
withsize = -1
. -
fill
-
indexOf
Overloaded function for
indexOf(byte, int)
withfrom = 0
. -
indexOf
-
indexOf
Overloaded function for
indexOf(io.qt.core.QByteArray, int)
withfrom = 0
. -
indexOf
-
indexOf
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()Overloaded function for
indexOf(java.lang.String, int)
withfrom = 0
. -
indexOf
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit() -
indexOf
Overloaded function for
indexOf(java.nio.Buffer, int)
withfrom = 0
. -
indexOf
-
insert
-
insert
-
insert
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit() -
insert
-
insert
-
insert
-
isDetached
-
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
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()Overloaded function for
lastIndexOf(java.lang.String, int)
withfrom = -1
. -
lastIndexOf
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit() -
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
-
writeTo
-
set
-
set
-
readFrom
-
prepend
-
prepend
-
prepend
-
prepend
-
prepend
-
remove
-
repeated
-
replace
-
replace
-
replace
-
replace
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit() -
replace
-
replace
-
replace
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit() -
replace
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit() -
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
-
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
-
count
-
contains
-
startsWith
-
contains
-
count
-
endsWith
-
prepend
-
replace
-
insert
-
replace
-
replace
-
compare
-
compare
-
compare
-
compare
-
clone
-