java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QByteArrayView
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<Object>
,Iterable<Byte>
public class QByteArrayView
extends QtObject
implements Comparable<Object>, Iterable<Byte>, Cloneable
View on an array of bytes with a read-only subset of the QByteArray API
Java wrapper for Qt class QByteArrayView
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQByteArrayView
(byte[] data) QByteArrayView
(QByteArray data) protected
Constructor for internal use only.QByteArrayView
(String data) QByteArrayView
(ByteBuffer data) -
Method Summary
Modifier and TypeMethodDescriptionfinal byte
at
(long n) begin()
final void
chop
(long n) final QByteArrayView
chopped
(long len) clone()
final int
compare
(byte[] a) final int
compare
(byte[] a, Qt.CaseSensitivity cs) final int
final int
compare
(QByteArray a, Qt.CaseSensitivity cs) final int
Overloaded function forcompare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
.final int
final int
final int
compare
(String a, Qt.CaseSensitivity cs) final int
final int
compare
(ByteBuffer a, Qt.CaseSensitivity cs) int
final boolean
contains
(byte c) final boolean
contains
(byte[] a) final boolean
final boolean
final boolean
final boolean
final long
count
(byte ch) final long
count
(byte[] a) final long
count
(QByteArray a) final long
final long
final long
count
(ByteBuffer a) final ByteBuffer
data()
end()
final boolean
endsWith
(byte c) final boolean
endsWith
(byte[] a) final boolean
final boolean
endsWith
(QByteArrayView other) 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 byte
first()
final QByteArrayView
first
(long n) int
hashCode()
final long
indexOf
(byte ch) Overloaded function forindexOf(byte, long)
withfrom = 0
.final long
indexOf
(byte[] a) final long
indexOf
(byte[] a, long from) final long
indexOf
(byte ch, long from) final long
final long
indexOf
(QByteArray a, long from) final long
Overloaded function forindexOf(io.qt.core.QByteArrayView, long)
withfrom = 0
.final long
indexOf
(QByteArrayView a, long from) final long
final long
final long
final long
indexOf
(ByteBuffer a, long from) final boolean
isEmpty()
final boolean
isNull()
final boolean
iterator()
final byte
last()
final QByteArrayView
last
(long n) final long
lastIndexOf
(byte ch) Overloaded function forlastIndexOf(byte, long)
withfrom = -1
.final long
lastIndexOf
(byte[] a) final long
lastIndexOf
(byte[] a, long from) final long
lastIndexOf
(byte ch, long from) final long
final long
lastIndexOf
(QByteArray a, long from) final long
final long
lastIndexOf
(QByteArrayView a, long from) final long
final long
lastIndexOf
(String a, long from) final long
final long
lastIndexOf
(ByteBuffer a, long from) final long
length()
final long
size()
final QByteArrayView
sliced
(long pos) final QByteArrayView
sliced
(long pos, long n) final boolean
startsWith
(byte c) final boolean
startsWith
(byte[] a) final boolean
final boolean
startsWith
(QByteArrayView other) final boolean
startsWith
(String a) final boolean
final QByteArray
final double
toDouble()
final float
toFloat()
final int
toInt()
Overloaded function fortoInt(int)
withbase = 10
.final int
toInt
(int base) final short
toShort()
Overloaded function fortoShort(int)
withbase = 10
.final short
toShort
(int base) final QByteArrayView
trimmed()
final void
truncate
(long n) Methods inherited from class io.qt.QtObject
dispose, isDisposed
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
QByteArrayView
public QByteArrayView() -
QByteArrayView
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QByteArrayView
public QByteArrayView(byte[] data) -
QByteArrayView
-
QByteArrayView
-
QByteArrayView
-
-
Method Details
-
at
-
begin
-
chop
-
chopped
-
compare
Overloaded function for
compare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)
withcs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
. -
compare
-
contains
-
contains
-
count
-
count
-
data
-
end
-
endsWith
-
endsWith
-
first
-
first
-
indexOf
Overloaded function for
indexOf(io.qt.core.QByteArrayView, long)
withfrom = 0
. -
indexOf
-
indexOf
Overloaded function for
indexOf(byte, long)
withfrom = 0
. -
indexOf
-
isEmpty
-
isNull
-
isValidUtf8
-
last
-
last
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
Overloaded function for
lastIndexOf(byte, long)
withfrom = -1
. -
lastIndexOf
-
length
-
size
-
sliced
-
sliced
-
startsWith
-
startsWith
-
toByteArray
-
toDouble
- Throws:
NumberFormatException
-
toFloat
- Throws:
NumberFormatException
-
toInt
Overloaded function for
toInt(int)
withbase = 10
.- Throws:
NumberFormatException
-
toInt
- Throws:
NumberFormatException
-
toShort
Overloaded function for
toShort(int)
withbase = 10
.- Throws:
NumberFormatException
-
toShort
- Throws:
NumberFormatException
-
trimmed
-
truncate
-
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
-
compare
-
compare
-
compare
-
compare
-
compare
-
compare
-
compare
-
compare
-
contains
-
contains
-
contains
-
contains
-
endsWith
-
endsWith
-
endsWith
-
endsWith
-
startsWith
-
startsWith
-
startsWith
-
startsWith
-
count
-
count
-
count
-
count
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
indexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
lastIndexOf
-
clone
-