- 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(ByteBuffer arg__1)
Overloaded constructor forQByteArray(java.nio.ByteBuffer, int)
withsize = -1
.QByteArray(ByteBuffer arg__1, int size)
-
Method Summary
-
Constructor Details
-
QByteArray
public QByteArray() -
QByteArray
-
QByteArray
Overloaded constructor for
QByteArray(java.nio.ByteBuffer, int)
withsize = -1
. -
QByteArray
-
QByteArray
public QByteArray(int size, byte c) -
QByteArray
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QByteArray
-
QByteArray
public QByteArray(byte[] data) -
QByteArray
public QByteArray(byte[] data, int size)
-
-
Method Details
-
append
-
append
-
append
-
append
-
append
-
append
-
at
-
back
-
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.ByteBuffer, 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
-
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.ByteBuffer, int)
withfrom = 0
. -
indexOf
-
insert
-
insert
-
insert
-
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
Overloaded function for
lastIndexOf(java.lang.String, int)
withfrom = -1
. -
lastIndexOf
-
lastIndexOf
Overloaded function for
lastIndexOf(java.nio.ByteBuffer, 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
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
@QtUninvokable public final QByteArray replace(ByteBuffer before, int bsize, ByteBuffer after, int asize) -
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
public int hashCode() -
toString
-
contains
-
contains
public final boolean contains(byte[] data) -
count
-
count
public final int count(byte[] data) -
endsWith
-
prepend
-
replace
-
replace
-
startsWith
-
prepend
-
replace
-
insert
-
join
-
join
-
join
-
compare
public final int compare(byte[] b) -
compare
-
compare
-
compare
-
clone
-