- 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, int size)
QByteArray(int 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, int)
withsize = -1
.QByteArray(Buffer arg__1, int size)
-
Method Summary
Modifier and Type Method Description QByteArray
append(byte c)
QByteArray
append(int count, byte c)
QByteArray
append(QByteArray a)
QByteArray
append(String s)
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()QByteArray
append(Buffer s)
QByteArray
append(Buffer s, int len)
byte
at(int i)
protected QIterator<Byte>
begin()
int
capacity()
void
chop(int n)
QByteArray
chopped(int len)
void
clear()
QByteArray
clone()
int
compare(byte[] b)
int
compare(byte[] b, Qt.CaseSensitivity cs)
int
compare(QByteArray a)
Overloaded function forcompare(io.qt.core.QByteArray, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
.int
compare(QByteArray a, Qt.CaseSensitivity cs)
int
compare(String str)
int
compare(String str, Qt.CaseSensitivity cs)
int
compare(Buffer c)
Overloaded function forcompare(java.nio.Buffer, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
.int
compare(Buffer c, Qt.CaseSensitivity cs)
int
compareTo(Object other)
boolean
contains(byte c)
boolean
contains(byte[] data)
boolean
contains(QByteArray a)
boolean
contains(String str)
boolean
contains(Buffer a)
int
count(byte c)
int
count(byte[] data)
int
count(QByteArray a)
int
count(String str)
int
count(Buffer a)
ByteBuffer
data()
void
detach()
protected QIterator<Byte>
end()
boolean
endsWith(byte c)
boolean
endsWith(QByteArray a)
boolean
endsWith(String str)
boolean
endsWith(Buffer c)
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, int)
withsize = -1
.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()
int
indexOf(byte c)
Overloaded function forindexOf(byte, int)
withfrom = 0
.int
indexOf(byte c, int from)
int
indexOf(QByteArray a)
Overloaded function forindexOf(io.qt.core.QByteArray, int)
withfrom = 0
.int
indexOf(QByteArray a, int from)
int
indexOf(String s)
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()int
indexOf(String s, int from)
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()int
indexOf(Buffer c)
Overloaded function forindexOf(java.nio.Buffer, int)
withfrom = 0
.int
indexOf(Buffer c, int from)
QByteArray
insert(int i, byte c)
QByteArray
insert(int i, byte[] data)
QByteArray
insert(int i, int count, byte c)
QByteArray
insert(int i, QByteArray a)
QByteArray
insert(int i, String s)
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()QByteArray
insert(int i, Buffer s)
QByteArray
insert(int i, Buffer s, int 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)
int
lastIndexOf(byte c)
Overloaded function forlastIndexOf(byte, int)
withfrom = -1
.int
lastIndexOf(byte c, int from)
int
lastIndexOf(QByteArray a)
Overloaded function forlastIndexOf(io.qt.core.QByteArray, int)
withfrom = -1
.int
lastIndexOf(QByteArray a, int from)
int
lastIndexOf(String s)
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()int
lastIndexOf(String s, int from)
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()QByteArray
lastIndexOf(Buffer c)
Overloaded function forlastIndexOf(java.nio.Buffer, int)
withfrom = -1
.QByteArray
lastIndexOf(Buffer c, int from)
QByteArray
left(int len)
QByteArray
leftJustified(int width)
Overloaded function forleftJustified(int, byte, boolean)
QByteArray
leftJustified(int width, byte fill)
Overloaded function forleftJustified(int, byte, boolean)
withtruncate = false
.QByteArray
leftJustified(int width, byte fill, boolean truncate)
int
length()
QByteArray
mid(int index)
Overloaded function formid(int, int)
withlen = -1
.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)
QByteArray
prepend(byte c)
QByteArray
prepend(byte[] data)
QByteArray
prepend(int count, byte c)
QByteArray
prepend(QByteArray a)
QByteArray
prepend(String str)
QByteArray
prepend(Buffer s)
QByteArray
prepend(Buffer s, int len)
void
readFrom(QDataStream arg__1)
QByteArray
remove(int index, int len)
QByteArray
repeated(int times)
QByteArray
replace(byte before, byte after)
QByteArray
replace(byte before, QByteArray after)
QByteArray
replace(byte c, String after)
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()QByteArray
replace(byte before, Buffer after)
QByteArray
replace(int index, int len, byte[] data)
QByteArray
replace(int index, int len, QByteArray s)
QByteArray
replace(int index, int len, Buffer s)
QByteArray
replace(int index, int len, Buffer s, int alen)
QByteArray
replace(QByteArray before, QByteArray after)
QByteArray
replace(QByteArray before, String after)
QByteArray
replace(QByteArray before, Buffer after)
QByteArray
replace(String before, QByteArray after)
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()QByteArray
replace(String before, String after)
QByteArray
replace(String before, Buffer after)
Deprecated.Use QString's toUtf8(), toLatin1() or toLocal8Bit()QByteArray
replace(Buffer before, int bsize, Buffer after, int asize)
QByteArray
replace(Buffer before, QByteArray after)
QByteArray
replace(Buffer before, Buffer after)
void
reserve(int size)
void
resize(int size)
QByteArray
right(int len)
QByteArray
rightJustified(int width)
Overloaded function forrightJustified(int, byte, boolean)
QByteArray
rightJustified(int width, byte fill)
Overloaded function forrightJustified(int, byte, boolean)
withtruncate = false
.QByteArray
rightJustified(int 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, int n)
void
shrink_to_fit()
QByteArray
simplified()
int
size()
QList<QByteArray>
split(byte sep)
void
squeeze()
boolean
startsWith(byte c)
boolean
startsWith(QByteArray a)
boolean
startsWith(String str)
boolean
startsWith(Buffer c)
void
swap(QByteArray other)
QByteArray
toBase64()
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()
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(int pos)
void
writeTo(QDataStream arg__1)
-
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
-
isSharedWith
-
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
-