java.lang.Object
io.qt.QtObject
io.qt.core.QDataStream
- All Implemented Interfaces:
QtObjectInterface
Serialization of binary data to a QIODevice
Java wrapper for Qt class QDataStream
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQDataStream::ByteOrder
static enum
Java wrapper for Qt enumQDataStream::FloatingPointPrecision
static enum
Java wrapper for Qt enumQDataStream::Status
static enum
Java wrapper for Qt enumQDataStream::Version
-
Constructor Summary
ConstructorDescriptionQDataStream
(byte [] arg__1) Overloaded constructor forQDataStream(io.qt.core.QByteArray)
.QDataStream
(QByteArray arg__1) QDataStream
(QByteArray arg__1, QIODevice.OpenMode flags) QDataStream
(QByteArray arg__1, QIODevice.OpenModeFlag ... flags) Overloaded constructor forQDataStream(io.qt.core.QByteArray, io.qt.core.QIODevice.OpenMode)
.QDataStream
(QIODevice arg__1) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final QDataStream
append
(boolean i) final QDataStream
append
(byte i) final QDataStream
append
(byte[] v) final QDataStream
append
(char i) final QDataStream
append
(double f) final QDataStream
append
(float f) final QDataStream
append
(int i) final QDataStream
append
(long i) final QDataStream
append
(short i) final QDataStream
final <T> QDataStream
append
(T object) final boolean
atEnd()
final QDataStream.ByteOrder
final boolean
final QIODevice
device()
final boolean
final byte
readByte()
final int
readBytes
(byte[] arg__1) Deprecated.final int
readBytes
(byte[] arg__1, int offsetOfArg__1, int len) Deprecated.UsereadRawData(byte[], int, int)
instead.final int
readBytes
(ByteBuffer arg__1) Deprecated.UsereadRawData(java.nio.ByteBuffer)
instead.final char
readChar()
final double
final float
final float
final int
readInt()
final long
readLong()
final <T> T
readObject
(Class<T> cl, QMetaType ... instantiations) final int
readRawData
(byte[] arg__1) Overloaded function forreadRawData(java.nio.ByteBuffer)
.final int
readRawData
(byte[] arg__1, int offsetOfArg__1, int len) Overloaded function forreadRawData(java.nio.ByteBuffer)
.final int
readRawData
(ByteBuffer arg__1) final short
final String
final void
final void
final void
setByteOrder
(QDataStream.ByteOrder arg__1) final void
final void
final void
setStatus
(QDataStream.Status status) final void
setVersion
(int arg__1) final int
skipRawData
(int len) final void
final QDataStream.Status
status()
final void
final int
version()
final QDataStream
writeBoolean
(boolean v) final QDataStream
writeByte
(byte v) final int
writeBytes
(byte[] arg__1) Deprecated.UsewriteRawData(byte[])
instead.final int
writeBytes
(byte[] arg__1, int offsetOfArg__1, int len) Deprecated.UsewriteRawData(byte[], int, int)
instead.final int
writeBytes
(ByteBuffer arg__1) Deprecated.UsewriteRawData(java.nio.ByteBuffer)
instead.final QDataStream
writeChar
(char v) final QDataStream
writeDouble
(double v) final QDataStream
writeFloat
(float v) final QDataStream
writeFloat16
(float f) final QDataStream
writeInt
(int v) final QDataStream
writeLong
(long v) final <T> QDataStream
writeObject
(T t) final int
writeRawData
(byte[] arg__1) Overloaded function forwriteRawData(java.nio.ByteBuffer)
.final int
writeRawData
(byte[] arg__1, int offsetOfArg__1, int len) Overloaded function forwriteRawData(java.nio.ByteBuffer)
.final int
writeRawData
(ByteBuffer arg__1) final QDataStream
writeShort
(short v) final QDataStream
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QDataStream
public QDataStream() -
QDataStream
- Parameters:
arg__1
-
-
QDataStream
- Parameters:
arg__1
-flags
-
-
QDataStream
- Parameters:
arg__1
-
-
QDataStream
public QDataStream(byte [] arg__1) Overloaded constructor for
QDataStream(io.qt.core.QByteArray)
. -
QDataStream
Overloaded constructor for
QDataStream(io.qt.core.QByteArray, io.qt.core.QIODevice.OpenMode)
.
-
-
Method Details
-
abortTransaction
- Since:
- This function was introduced in Qt 5.7.
-
atEnd
- Returns:
-
byteOrder
- Returns:
-
commitTransaction
- Returns:
- Since:
- This function was introduced in Qt 5.7.
-
device
- Returns:
-
floatingPointPrecision
- Returns:
- Since:
- This function was introduced in Qt 4.6.
-
append
- Parameters:
i
-- Returns:
-
append
- Parameters:
str
-- Returns:
-
append
- Parameters:
f
-- Returns:
-
append
- Parameters:
f
-- Returns:
-
writeFloat16
- Parameters:
f
-- Returns:
- Since:
- This function was introduced in Qt 5.9.
-
append
- Parameters:
i
-- Returns:
-
append
- Parameters:
i
-- Returns:
-
append
- Parameters:
i
-- Returns:
-
append
- Parameters:
i
-- Returns:
-
append
- Parameters:
i
-- Returns:
-
readBoolean
- Returns:
-
readString
- Returns:
-
readDouble
- Returns:
-
readFloat
- Returns:
-
readFloat16
- Returns:
- Since:
- This function was introduced in Qt 5.9.
-
readShort
- Returns:
-
readInt
- Returns:
-
readLong
- Returns:
-
readByte
- Returns:
-
readChar
- Returns:
-
readRawData
- Parameters:
arg__1
-- Returns:
-
resetStatus
-
rollbackTransaction
- Since:
- This function was introduced in Qt 5.7.
-
setByteOrder
- Parameters:
arg__1
-
-
setDevice
- Parameters:
arg__1
-
-
setFloatingPointPrecision
@QtUninvokable public final void setFloatingPointPrecision(QDataStream.FloatingPointPrecision precision) - Parameters:
precision
-- Since:
- This function was introduced in Qt 4.6.
-
setStatus
- Parameters:
status
-
-
setVersion
- Parameters:
arg__1
-
-
skipRawData
- Parameters:
len
-- Returns:
- Since:
- This function was introduced in Qt 4.1.
-
startTransaction
- Since:
- This function was introduced in Qt 5.7.
-
status
- Returns:
-
unsetDevice
-
version
- Returns:
-
writeRawData
- Parameters:
arg__1
-- Returns:
-
writeObject
-
writeString
-
writeDouble
-
writeByte
-
append
-
writeChar
-
writeFloat
-
writeInt
-
writeLong
-
writeShort
-
writeBoolean
-
append
-
readObject
-
readBytes
Deprecated.UsereadRawData(java.nio.ByteBuffer)
instead. -
readBytes
Deprecated.UsereadRawData(byte[], int, int)
instead. -
readBytes
Deprecated.UsereadRawData(byte[])
instead. -
readRawData
Overloaded function for
readRawData(java.nio.ByteBuffer)
. -
readRawData
Overloaded function for
readRawData(java.nio.ByteBuffer)
. -
writeBytes
Deprecated.UsewriteRawData(java.nio.ByteBuffer)
instead. -
writeBytes
Deprecated.UsewriteRawData(byte[], int, int)
instead. -
writeBytes
Deprecated.UsewriteRawData(byte[])
instead. -
writeRawData
Overloaded function for
writeRawData(java.nio.ByteBuffer)
. -
writeRawData
Overloaded function for
writeRawData(java.nio.ByteBuffer)
.
-
readRawData(byte[])
instead.