- All Implemented Interfaces:
QtObjectInterface
,Appendable
Convenient interface for reading and writing text
Java wrapper for Qt class QTextStream
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQTextStream::FieldAlignment
static enum
Java wrapper for Qt enumQTextStream::NumberFlag
static final class
QFlags
type for enumQTextStream.NumberFlag
static enum
Java wrapper for Qt enumQTextStream::RealNumberNotation
static enum
Java wrapper for Qt enumQTextStream::Status
-
Constructor Summary
ConstructorDescriptionQTextStream
(QByteArray array) Overloaded constructor forQTextStream(io.qt.core.QByteArray, io.qt.core.QIODevice.OpenMode)
withopenMode = new io.qt.core.QIODevice.OpenMode(3)
.QTextStream
(QByteArray array, QIODevice.OpenMode openMode) QTextStream
(QByteArray array, QIODevice.OpenModeFlag ... openMode) Overloaded constructor forQTextStream(io.qt.core.QByteArray, io.qt.core.QIODevice.OpenMode)
.QTextStream
(QIODevice device) QTextStream
(String string) QTextStream
(String string, QIODevice.OpenMode openMode) QTextStream
(String string, QIODevice.OpenModeFlag ... openMode) QTextStream
(String string) QTextStream
(String string, QIODevice.OpenMode openMode) QTextStream
(String string, QIODevice.OpenModeFlag ... openMode) -
Method Summary
Modifier and TypeMethodDescriptionfinal QTextStream
append
(byte ch) final QTextStream
append
(byte [] array) Overloaded function forappend(io.qt.core.QByteArray)
.final QTextStream
append
(char ch) final QTextStream
append
(double f) final QTextStream
append
(float f) final QTextStream
append
(int i) SeeQTextStream::
operator<<(signed int) final QTextStream
append
(long i) final QTextStream
append
(short i) SeeQTextStream::
operator<<(signed short) final QTextStream
append
(QByteArray array) final QTextStream
final QTextStream
final QTextStream
append
(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to thisQTextStream
.final boolean
atEnd()
final boolean
final QTextStream
bin()
SeeQt::bin
final QTextStream
bom()
SeeQt::bom
final QTextStream
center()
SeeQt::center
final QTextCodec
codec()
final QTextStream
dec()
SeeQt::dec
final QIODevice
device()
final QTextStream
endl()
SeeQt::endl
final int
final QTextStream
fixed()
SeeQt::fixed
final QTextStream
flush()
SeeQt::flush
final QTextStream
SeeQt::forcepoint
final QTextStream
SeeQt::forcesign
final boolean
final QTextStream
hex()
SeeQt::hex
final int
final QTextStream
left()
SeeQt::left
final QLocale
locale()
final QTextStream
final QTextStream
final QTextStream
SeeQt::noforcepoint
final QTextStream
SeeQt::noforcesign
final QTextStream
SeeQt::noshowbase
final QTextStream.NumberFlags
final QTextStream
oct()
SeeQt::oct
final char
padChar()
final long
pos()
final QTextStream
qSetFieldWidth
(int width) final QTextStream
qSetPadChar
(char ch) final QTextStream
qSetRealNumberPrecision
(int precision) final String
read
(long maxlen) final String
readAll()
final byte
readByte()
final QByteArray
final char
readChar()
final double
final float
final int
readInt()
SeeQTextStream::
operator>>(signed int&) final String
readLine()
Overloaded function forreadLine(long)
withmaxlen = 0
.final String
readLine
(long maxlen) final long
readLong()
final QString
final short
SeeQTextStream::
operator>>(signed short&) final String
final int
final QTextStream
reset()
SeeQt::reset
final void
final QTextStream
right()
SeeQt::right
final QTextStream
SeeQt::scientific
final boolean
seek
(long pos) final void
setAutoDetectUnicode
(boolean enabled) final void
setCodec
(QTextCodec codec) final void
final void
final void
setFieldAlignment
(QTextStream.FieldAlignment alignment) final void
setFieldWidth
(int width) final void
setGenerateByteOrderMark
(boolean generate) final void
setIntegerBase
(int base) final void
final void
setLocale
(QLocale.Language locale) Overloaded function forsetLocale(io.qt.core.QLocale)
.final void
Overloaded function forsetLocale(io.qt.core.QLocale)
.final void
setNumberFlags
(QTextStream.NumberFlag ... flags) Overloaded function forsetNumberFlags(io.qt.core.QTextStream.NumberFlags)
.final void
final void
setPadChar
(char ch) final void
final void
setRealNumberPrecision
(int precision) final void
setStatus
(QTextStream.Status status) void
void
setString
(String string, QIODevice.OpenMode openMode) void
setString
(String string, QIODevice.OpenModeFlag... openMode) <String extends Object & Appendable & CharSequence>
voidsetString
(String string) <String extends Object & Appendable & CharSequence>
voidsetString
(String string, QIODevice.OpenMode openMode) <String extends Object & Appendable & CharSequence>
voidsetString
(String string, QIODevice.OpenModeFlag ... openMode) final QTextStream
showbase()
SeeQt::showbase
final void
final QTextStream.Status
status()
final CharSequence
string()
final QTextStream
final QTextStream
final QTextStream
writeByte
(byte v) final QTextStream
final QTextStream
writeChar
(char v) final QTextStream
writeDouble
(double v) final QTextStream
writeFloat
(float v) final QTextStream
writeInt
(int v) final QTextStream
writeLong
(long v) final QTextStream
writeShort
(short v) final QTextStream
final QTextStream
final QTextStream
ws()
SeeQt::ws
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QTextStream
public QTextStream() -
QTextStream
- Parameters:
array
-openMode
-
-
QTextStream
- Parameters:
device
-
-
QTextStream
-
QTextStream
public QTextStream(String string) -
QTextStream
-
QTextStream
-
QTextStream
-
QTextStream
-
QTextStream
Overloaded constructor for
QTextStream(io.qt.core.QByteArray, io.qt.core.QIODevice.OpenMode)
withopenMode = new io.qt.core.QIODevice.OpenMode(3)
. -
QTextStream
Overloaded constructor for
QTextStream(io.qt.core.QByteArray, io.qt.core.QIODevice.OpenMode)
.
-
-
Method Details
-
atEnd
- Returns:
-
autoDetectUnicode
- Returns:
-
codec
- Returns:
-
fieldAlignment
- Returns:
-
fieldWidth
- Returns:
-
generateByteOrderMark
- Returns:
-
integerBase
- Returns:
-
locale
- Returns:
- Since:
- This function was introduced in Qt 4.5.
-
numberFlags
- Returns:
-
append
- Parameters:
array
-- Returns:
-
append
- Specified by:
append
in interfaceAppendable
- Parameters:
ch
-- Returns:
-
append
- Specified by:
append
in interfaceAppendable
- Parameters:
s
-- Returns:
-
append
- Parameters:
ch
-- Returns:
-
append
- Parameters:
c
-- Returns:
-
append
- Parameters:
f
-- Returns:
-
append
- Parameters:
f
-- Returns:
-
append
- Parameters:
i
-- Returns:
-
append
See
QTextStream::
operator<<(signed int) - Parameters:
i
-- Returns:
-
append
See
QTextStream::
operator<<(signed short) - Parameters:
i
-- Returns:
-
readBytes
- Returns:
-
readChar
- Returns:
-
readQString
- Returns:
-
readByte
- Returns:
-
readString
- Returns:
-
readDouble
- Returns:
-
readFloat
- Returns:
-
readLong
- Returns:
-
readInt
See
QTextStream::
operator>>(signed int&) - Returns:
-
readShort
See
QTextStream::
operator>>(signed short&) - Returns:
-
padChar
- Returns:
-
pos
- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
read
- Parameters:
maxlen
-- Returns:
- Since:
- This function was introduced in Qt 4.1.
-
readAll
- Returns:
-
readLine
- Parameters:
maxlen
-- Returns:
-
realNumberNotation
- Returns:
-
realNumberPrecision
- Returns:
-
resetStatus
- Since:
- This function was introduced in Qt 4.1.
-
seek
- Parameters:
pos
-- Returns:
-
setAutoDetectUnicode
- Parameters:
enabled
-
-
setCodec
- Parameters:
codec
-
-
setCodec
- Parameters:
codecName
-
-
setDevice
- Parameters:
device
-
-
setFieldAlignment
- Parameters:
alignment
-
-
setFieldWidth
- Parameters:
width
-
-
setGenerateByteOrderMark
- Parameters:
generate
-
-
setIntegerBase
- Parameters:
base
-
-
setLocale
- Parameters:
locale
-- Since:
- This function was introduced in Qt 4.5.
-
setNumberFlags
- Parameters:
flags
-
-
setPadChar
- Parameters:
ch
-
-
setRealNumberNotation
- Parameters:
notation
-
-
setRealNumberPrecision
- Parameters:
precision
-
-
setStatus
- Parameters:
status
-- Since:
- This function was introduced in Qt 4.1.
-
skipWhiteSpace
-
status
- Returns:
-
string
-
append
Appends a subsequence of the specified character sequence to thisQTextStream
.- Specified by:
append
in interfaceAppendable
-
device
-
setString
public <String extends Object & Appendable & CharSequence> void setString(String string, QIODevice.OpenModeFlag ... openMode) -
setString
-
setString
public <String extends Object & Appendable & CharSequence> void setString(String string, QIODevice.OpenMode openMode) -
setString
-
setString
-
setString
-
writeString
-
writeString
-
writeDouble
-
writeByte
-
writeBytes
-
writeChar
-
writeFloat
-
writeInt
-
writeLong
-
writeShort
-
endl
See
Qt::endl
-
flush
See
Qt::flush
-
reset
See
Qt::reset
-
bin
See
Qt::bin
-
oct
See
Qt::oct
-
hex
See
Qt::hex
-
dec
See
Qt::dec
-
showbase
See
Qt::showbase
-
forcesign
See
Qt::forcesign
-
forcepoint
See
Qt::forcepoint
-
noshowbase
See
Qt::noshowbase
-
noforcesign
See
Qt::noforcesign
-
noforcepoint
See
Qt::noforcepoint
-
uppercasebase
-
uppercasedigits
-
lowercasebase
-
lowercasedigits
-
fixed
See
Qt::fixed
-
scientific
See
Qt::scientific
-
left
See
Qt::left
-
right
See
Qt::right
-
center
See
Qt::center
-
bom
See
Qt::bom
-
ws
See
Qt::ws
-
qSetFieldWidth
-
qSetRealNumberPrecision
-
qSetPadChar
-
append
Overloaded function for
append(io.qt.core.QByteArray)
. -
readLine
Overloaded function for
readLine(long)
withmaxlen = 0
. -
setLocale
Overloaded function for
setLocale(io.qt.core.QLocale)
. -
setLocale
Overloaded function for
setLocale(io.qt.core.QLocale)
. -
setNumberFlags
Overloaded function for
setNumberFlags(io.qt.core.QTextStream.NumberFlags)
.
-