- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<Object>
,Iterable<Byte>
public class QByteArray extends QtObject implements Comparable<Object>, Iterable<Byte>, Cloneable
Array of bytes
Java wrapper for Qt class QByteArray
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QByteArray.Base64DecodingStatus
Java wrapper for Qt enum QByteArray::Base64DecodingStatusstatic class
QByteArray.Base64Option
Java wrapper for Qt enum QByteArray::Base64Optionstatic class
QByteArray.Base64Options
QFlags type for enumQByteArray.Base64Option
static class
QByteArray.FromBase64Result
-
Constructor Summary
Constructors Modifier Constructor Description QByteArray()
QByteArray(byte[] data)
QByteArray(byte[] data, long size)
QByteArray(long size, byte c)
QByteArray(QByteArray arg__1)
protected
QByteArray(QtObject.QPrivateConstructor p)
Constructor 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 Type Method Description QByteArray
append(byte c)
QByteArray
append(byte[] a)
QByteArray
append(long count, byte c)
QByteArray
append(QByteArray a)
QByteArray
append(QByteArrayView a)
QByteArray
append(String a)
QByteArray
append(Buffer s)
QByteArray
append(Buffer s, long len)
byte
at(long i)
protected QIterator<Byte>
begin()
long
capacity()
void
chop(long n)
QByteArray
chopped(long len)
void
clear()
QByteArray
clone()
int
compare(byte[] b)
int
compare(byte[] b, Qt.CaseSensitivity cs)
int
compare(QByteArrayView a)
Overloaded function forcompare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
.int
compare(QByteArrayView a, Qt.CaseSensitivity cs)
int
compare(String str)
int
compare(String str, Qt.CaseSensitivity cs)
int
compare(ByteBuffer b)
int
compare(ByteBuffer b, Qt.CaseSensitivity cs)
int
compareTo(Object other)
boolean
contains(byte c)
boolean
contains(byte[] data)
boolean
contains(QByteArrayView bv)
boolean
contains(String str)
boolean
contains(ByteBuffer data)
long
count(byte c)
long
count(byte[] data)
long
count(QByteArrayView bv)
long
count(String str)
long
count(ByteBuffer data)
ByteBuffer
data()
void
detach()
protected QIterator<Byte>
end()
boolean
endsWith(byte c)
boolean
endsWith(byte[] str)
boolean
endsWith(QByteArrayView bv)
boolean
endsWith(String str)
boolean
endsWith(ByteBuffer str)
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.QByteArray
fill(byte c)
Overloaded function forfill(byte, long)
withsize = -1
.QByteArray
fill(byte c, long size)
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)
int
hashCode()
long
indexOf(byte c)
Overloaded function forindexOf(byte, long)
withfrom = 0
.long
indexOf(byte[] other)
long
indexOf(byte[] other, long from)
long
indexOf(byte c, long from)
long
indexOf(QByteArray other)
long
indexOf(QByteArray other, long from)
long
indexOf(QByteArrayView bv)
Overloaded function forindexOf(io.qt.core.QByteArrayView, long)
withfrom = 0
.long
indexOf(QByteArrayView bv, long from)
long
indexOf(String strg)
long
indexOf(String strg, long from)
long
indexOf(ByteBuffer other)
long
indexOf(ByteBuffer other, long from)
QByteArray
insert(long i, byte c)
QByteArray
insert(long i, byte[] data)
QByteArray
insert(long i, long count, byte c)
QByteArray
insert(long i, QByteArray data)
QByteArray
insert(long i, QByteArrayView data)
QByteArray
insert(long i, String s)
QByteArray
insert(long i, Buffer s, long len)
boolean
isDetached()
boolean
isEmpty()
boolean
isLower()
boolean
isNull()
boolean
isSharedWith(QByteArray other)
boolean
isUpper()
Iterator<Byte>
iterator()
static QByteArray
join(Collection<QByteArray> stringList)
static QByteArray
join(Collection<QByteArray> stringList, byte sep)
static QByteArray
join(Collection<QByteArray> stringList, QByteArray sep)
QByteArray
last(long n)
long
lastIndexOf(byte c)
Overloaded function forlastIndexOf(byte, long)
withfrom = -1
.long
lastIndexOf(byte[] other)
long
lastIndexOf(byte[] other, long from)
long
lastIndexOf(byte c, long from)
long
lastIndexOf(QByteArray other)
long
lastIndexOf(QByteArray other, long from)
long
lastIndexOf(QByteArrayView bv)
Overloaded function forlastIndexOf(io.qt.core.QByteArrayView, long)
withfrom = -1
.long
lastIndexOf(QByteArrayView bv, long from)
long
lastIndexOf(String strg)
long
lastIndexOf(String strg, long from)
long
lastIndexOf(ByteBuffer other)
long
lastIndexOf(ByteBuffer other, long from)
QByteArray
left(long len)
QByteArray
leftJustified(long width)
Overloaded function forleftJustified(long, byte, boolean)
QByteArray
leftJustified(long width, byte fill)
Overloaded function forleftJustified(long, byte, boolean)
withtruncate = false
.QByteArray
leftJustified(long width, byte fill, boolean truncate)
long
length()
QByteArray
mid(long index)
Overloaded function formid(long, long)
withlen = -1
.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 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)
QByteArray
prepend(byte c)
QByteArray
prepend(byte[] data)
QByteArray
prepend(long count, byte c)
QByteArray
prepend(QByteArray a)
QByteArray
prepend(QByteArrayView a)
QByteArray
prepend(String str)
QByteArray
prepend(Buffer s)
QByteArray
prepend(Buffer s, long len)
void
push_back(QByteArrayView a)
void
push_front(QByteArrayView a)
void
readFrom(QDataStream arg__1)
QByteArray
remove(long index, long len)
QByteArray
repeated(long times)
QByteArray
replace(byte before, byte after)
QByteArray
replace(byte before, QByteArrayView after)
QByteArray
replace(long index, long len, byte[] data)
QByteArray
replace(long index, long len, QByteArrayView s)
QByteArray
replace(long index, long len, Buffer s, long alen)
QByteArray
replace(QByteArray before, String after)
QByteArray
replace(QByteArrayView before, QByteArrayView after)
QByteArray
replace(String before, String after)
QByteArray
replace(Buffer before, long bsize, Buffer after, long asize)
void
reserve(long size)
void
resize(long size)
QByteArray
right(long len)
QByteArray
rightJustified(long width)
Overloaded function forrightJustified(long, byte, boolean)
QByteArray
rightJustified(long width, byte fill)
Overloaded function forrightJustified(long, byte, boolean)
withtruncate = false
.QByteArray
rightJustified(long width, byte fill, boolean truncate)
QByteArray
set(QByteArray arg__1)
QByteArray
set(Buffer str)
QByteArray
setNum(double arg__1)
Overloaded function forsetNum(double, char, int)
QByteArray
setNum(double arg__1, char f)
Overloaded function forsetNum(double, char, int)
withprec = 6
.QByteArray
setNum(double arg__1, char f, int prec)
QByteArray
setNum(float arg__1)
Overloaded function forsetNum(float, char, int)
QByteArray
setNum(float arg__1, char f)
Overloaded function forsetNum(float, char, int)
withprec = 6
.QByteArray
setNum(float arg__1, char f, int prec)
QByteArray
setNum(int arg__1)
Overloaded function forsetNum(int, int)
withbase = 10
.QByteArray
setNum(int arg__1, int base)
QByteArray
setNum(long arg__1)
Overloaded function forsetNum(long, int)
withbase = 10
.QByteArray
setNum(long arg__1, int base)
QByteArray
setNum(short arg__1)
Overloaded function forsetNum(short, int)
withbase = 10
.QByteArray
setNum(short arg__1, int base)
protected QByteArray
setRawData(Buffer a, long n)
void
shrink_to_fit()
QByteArray
simplified()
long
size()
QByteArray
sliced(long pos)
QByteArray
sliced(long pos, long n)
QList<QByteArray>
split(byte sep)
void
squeeze()
boolean
startsWith(byte c)
boolean
startsWith(byte[] str)
boolean
startsWith(QByteArrayView bv)
boolean
startsWith(String str)
boolean
startsWith(ByteBuffer str)
void
swap(QByteArray other)
QByteArray
toBase64()
Overloaded function fortoBase64(io.qt.core.QByteArray.Base64Options)
withoptions = new io.qt.core.QByteArray.Base64Options(0)
.QByteArray
toBase64(QByteArray.Base64Option... options)
Overloaded function fortoBase64(io.qt.core.QByteArray.Base64Options)
.QByteArray
toBase64(QByteArray.Base64Options options)
byte[]
toByteArray()
double
toDouble()
float
toFloat()
QByteArray
toHex()
Overloaded function fortoHex(byte)
withseparator = '\0'
.QByteArray
toHex(byte separator)
int
toInt()
Overloaded function fortoInt(int)
withbase = 10
.int
toInt(int base)
QByteArray
toLower()
QByteArray
toPercentEncoding()
Overloaded function fortoPercentEncoding(io.qt.core.QByteArray, io.qt.core.QByteArray, byte)
QByteArray
toPercentEncoding(QByteArray exclude)
Overloaded function fortoPercentEncoding(io.qt.core.QByteArray, io.qt.core.QByteArray, byte)
QByteArray
toPercentEncoding(QByteArray exclude, QByteArray include)
Overloaded function fortoPercentEncoding(io.qt.core.QByteArray, io.qt.core.QByteArray, byte)
withpercent = '%'
.QByteArray
toPercentEncoding(QByteArray exclude, QByteArray include, byte percent)
short
toShort()
Overloaded function fortoShort(int)
withbase = 10
.short
toShort(int base)
String
toString()
QByteArray
toUpper()
QByteArray
trimmed()
void
truncate(long pos)
void
writeTo(QDataStream arg__1)
-
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
-
isSharedWith
-
isUpper
-
last
-
lastIndexOf
Overloaded function for
lastIndexOf(io.qt.core.QByteArrayView, long)
withfrom = -1
. -
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
@QtUninvokable public final QByteArray replace(Buffer before, long bsize, Buffer after, long asize) -
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)
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
-
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)
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
-
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
-