Class QTextStream
- All Implemented Interfaces:
QIODeviceBase,QtObjectInterface,Appendable
Convenient interface for reading and writing text
Java wrapper for Qt class QTextStream
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumJava wrapper for Qt enumQTextStream::FieldAlignmentstatic enumJava wrapper for Qt enumQTextStream::NumberFlagstatic final classQFlagstype for enumQTextStream.NumberFlagstatic enumJava wrapper for Qt enumQTextStream::RealNumberNotationstatic enumJava wrapper for Qt enumQTextStream::StatusNested classes/interfaces inherited from interface io.qt.core.QIODeviceBase
QIODeviceBase.OpenMode, QIODeviceBase.OpenModeFlag -
Constructor Summary
ConstructorsModifierConstructorDescription<String extends Object & Appendable & CharSequence>QTextStream(String string) <String extends Object & Appendable & CharSequence>QTextStream(String string, QIODeviceBase.OpenMode openMode) <String extends Object & Appendable & CharSequence>QTextStream(String string, QIODeviceBase.OpenModeFlag ... openMode) QTextStream(QByteArray array) Overloaded constructor forQTextStream(io.qt.core.QByteArray, io.qt.core.QIODeviceBase.OpenMode)withopenMode = new io.qt.core.QIODeviceBase.OpenMode(3).QTextStream(QByteArray array, QIODeviceBase.OpenMode openMode) QTextStream(QByteArray array, QIODeviceBase.OpenModeFlag ... openMode) Overloaded constructor forQTextStream(io.qt.core.QByteArray, io.qt.core.QIODeviceBase.OpenMode).QTextStream(QIODevice device) QTextStream(String string) QTextStream(String string, QIODeviceBase.OpenMode openMode) QTextStream(String string, QIODeviceBase.OpenModeFlag ... openMode) -
Method Summary
Modifier and TypeMethodDescriptionfinal QTextStreamappend(byte ch) final QTextStreamappend(byte [] array) Overloaded function forappend(io.qt.core.QByteArray).final QTextStreamappend(char ch) final QTextStreamappend(double f) final QTextStreamappend(float f) final QTextStreamappend(int i) final QTextStreamappend(long i) final QTextStreamappend(short i) final QTextStreamappend(QByteArray array) final QTextStreamfinal QTextStreamfinal QTextStreamappend(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to thisQTextStream.final QTextStreamfinal booleanatEnd()final booleanfinal QTextStreambin()SeeQt::bin(QTextStream&) final QTextStreambom()SeeQt::bom(QTextStream&) final QTextStreamcenter()SeeQt::center(QTextStream&) final QTextStreamdec()SeeQt::dec(QTextStream&) final QIODevicedevice()encoding()final QTextStreamendl()SeeQt::endl(QTextStream&) final intfinal QTextStreamfixed()SeeQt::fixed(QTextStream&) final QTextStreamflush()final QTextStreamSeeQt::forcepoint(QTextStream&) final QTextStreamSeeQt::forcesign(QTextStream&) final booleanfinal QTextStreamhex()SeeQt::hex(QTextStream&) final intfinal QTextStreamleft()SeeQt::left(QTextStream&) final QLocalelocale()final QTextStreamSeeQt::lowercasebase(QTextStream&) final QTextStreamSeeQt::lowercasedigits(QTextStream&) final QTextStreamSeeQt::noforcepoint(QTextStream&) final QTextStreamSeeQt::noforcesign(QTextStream&) final QTextStreamSeeQt::noshowbase(QTextStream&) final QTextStream.NumberFlagsfinal QTextStreamoct()SeeQt::oct(QTextStream&) final charpadChar()final longpos()final QTextStreamqSetFieldWidth(int width) final QTextStreamqSetPadChar(char ch) final QTextStreamqSetRealNumberPrecision(int precision) final Stringread(long maxlen) final StringreadAll()final bytereadByte()final QByteArrayfinal charreadChar()final doublefinal floatfinal intreadInt()final StringreadLine()Overloaded function forreadLine(long)withmaxlen = 0.final StringreadLine(long maxlen) final longreadLong()final QStringfinal shortfinal Stringfinal intfinal QTextStreamreset()final voidfinal QTextStreamright()SeeQt::right(QTextStream&) final QTextStreamSeeQt::scientific(QTextStream&) final booleanseek(long pos) final voidsetAutoDetectUnicode(boolean enabled) final voidfinal voidsetEncoding(QStringConverter.Encoding encoding) final voidsetFieldAlignment(QTextStream.FieldAlignment alignment) final voidsetFieldWidth(int width) final voidsetGenerateByteOrderMark(boolean generate) final voidsetIntegerBase(int base) final voidfinal voidsetLocale(QLocale.Language locale) Overloaded function forsetLocale(io.qt.core.QLocale).final voidsetNumberFlags(QTextStream.NumberFlag ... flags) Overloaded function forsetNumberFlags(io.qt.core.QTextStream.NumberFlags).final voidfinal voidsetPadChar(char ch) final voidfinal voidsetRealNumberPrecision(int precision) final voidsetStatus(QTextStream.Status status) final <String extends Object & Appendable & CharSequence>
voidsetString(String string) final <String extends Object & Appendable & CharSequence>
voidsetString(String string, QIODeviceBase.OpenMode openMode) final <String extends Object & Appendable & CharSequence>
voidsetString(String string, QIODeviceBase.OpenModeFlag ... openMode) final voidfinal voidsetString(String string, QIODeviceBase.OpenMode openMode) final voidsetString(String string, QIODeviceBase.OpenModeFlag... openMode) final QTextStreamshowbase()SeeQt::showbase(QTextStream&) final voidfinal QTextStream.Statusstatus()final CharSequencestring()final QTextStreamSeeQt::uppercasebase(QTextStream&) final QTextStreamSeeQt::uppercasedigits(QTextStream&) final QTextStreamwriteByte(byte ch) Delegate forappend(byte).final QTextStreamwriteBytes(byte [] array) Delegate forappend(io.qt.core.QByteArray).final QTextStreamwriteBytes(QByteArray array) Delegate forappend(io.qt.core.QByteArray).final QTextStreamwriteChar(char ch) Delegate forappend(char).final QTextStreamwriteDouble(double f) Delegate forappend(double).final QTextStreamwriteFloat(float f) Delegate forappend(float).final QTextStreamwriteInt(int i) Delegate forappend(int).final QTextStreamwriteLong(long i) Delegate forappend(long).final QTextStreamwriteShort(short i) Delegate forappend(short).final QTextStreamDelegate forappend(io.qt.core.QString).final QTextStreamDelegate forappend(java.lang.CharSequence).final QTextStreamDelegate forappend(java.lang.String).final QTextStreamws()SeeQt::ws(QTextStream&) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposedMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.qt.QtObjectInterface
dispose, isDisposed
-
Constructor Details
-
QTextStream
public QTextStream() -
QTextStream
- Parameters:
array-openMode-
-
QTextStream
-
QTextStream
public <String extends Object & Appendable & CharSequence> QTextStream(String string, QIODeviceBase.OpenModeFlag ... openMode) -
QTextStream
-
QTextStream
public <String extends Object & Appendable & CharSequence> QTextStream(String string, QIODeviceBase.OpenMode openMode) -
QTextStream
-
QTextStream
-
QTextStream
-
QTextStream
Overloaded constructor for
QTextStream(io.qt.core.QByteArray, io.qt.core.QIODeviceBase.OpenMode)withopenMode = new io.qt.core.QIODeviceBase.OpenMode(3). -
QTextStream
Overloaded constructor for
QTextStream(io.qt.core.QByteArray, io.qt.core.QIODeviceBase.OpenMode).
-
-
Method Details
-
atEnd
-
autoDetectUnicode
- Returns:
-
bin
See
Qt::bin(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
bom
See
Qt::bom(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
center
See
Qt::center(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
dec
See
Qt::dec(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
encoding
- Returns:
-
endl
See
Qt::endl(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
fieldAlignment
- Returns:
-
fieldWidth
-
fixed
See
Qt::fixed(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
flush
This member function returns the object itself.
- Returns:
- this
-
forcepoint
See
Qt::forcepoint(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
forcesign
See
Qt::forcesign(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
generateByteOrderMark
- Returns:
-
hex
See
Qt::hex(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
integerBase
-
left
See
Qt::left(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
locale
-
lowercasebase
See
Qt::lowercasebase(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
lowercasedigits
See
Qt::lowercasedigits(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
noforcepoint
See
Qt::noforcepoint(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
noforcesign
See
Qt::noforcesign(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
noshowbase
See
Qt::noshowbase(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
numberFlags
- Returns:
-
oct
See
Qt::oct(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
append
See
QTextStream::operator<<(QByteArray) This member function returns the object itself.
- Parameters:
array-- Returns:
- this
-
append
See
QTextStream::operator<<(QChar) This member function returns the object itself.
- Specified by:
appendin interfaceAppendable- Parameters:
ch-- Returns:
- this
-
append
See
QTextStream::operator<<(QString) This member function returns the object itself.
- Parameters:
s-- Returns:
- this
-
append
See
QTextStream::operator<<(QStringView) This member function returns the object itself.
- Parameters:
s-- Returns:
- this
-
append
See
QTextStream::operator<<(char) This member function returns the object itself.
- Parameters:
ch-- Returns:
- this
-
append
See
QTextStream::operator<<(const char*) This member function returns the object itself.
- Specified by:
appendin interfaceAppendable- Parameters:
c-- Returns:
- this
-
append
See
QTextStream::operator<<(double) This member function returns the object itself.
- Parameters:
f-- Returns:
- this
-
append
See
QTextStream::operator<<(float) This member function returns the object itself.
- Parameters:
f-- Returns:
- this
-
append
See
QTextStream::operator<<(int) This member function returns the object itself.
- Parameters:
i-- Returns:
- this
-
append
See
QTextStream::operator<<(qlonglong) This member function returns the object itself.
- Parameters:
i-- Returns:
- this
-
append
See
QTextStream::operator<<(short) This member function returns the object itself.
- Parameters:
i-- Returns:
- this
-
readBytes
- Returns:
-
readChar
-
readQString
-
readByte
-
readString
-
readDouble
-
readFloat
-
readInt
-
readLong
-
readShort
-
padChar
-
pos
-
qSetFieldWidth
This member function returns the object itself.
- Parameters:
width-- Returns:
- this
-
qSetPadChar
This member function returns the object itself.
- Parameters:
ch-- Returns:
- this
-
qSetRealNumberPrecision
See
qSetRealNumberPrecision(int)This member function returns the object itself.
- Parameters:
precision-- Returns:
- this
-
read
- Parameters:
maxlen-- Returns:
-
readAll
-
readLine
- Parameters:
maxlen-- Returns:
-
realNumberNotation
- Returns:
-
realNumberPrecision
- Returns:
-
reset
This member function returns the object itself.
- Returns:
- this
-
resetStatus
-
right
See
Qt::right(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
scientific
See
Qt::scientific(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
seek
- Parameters:
pos-- Returns:
-
setAutoDetectUnicode
- Parameters:
enabled-
-
setDevice
- Parameters:
device-
-
setEncoding
- Parameters:
encoding-
-
setFieldAlignment
- Parameters:
alignment-
-
setFieldWidth
- Parameters:
width-
-
setGenerateByteOrderMark
- Parameters:
generate-
-
setIntegerBase
- Parameters:
base-
-
setLocale
- Parameters:
locale-
-
setNumberFlags
- Parameters:
flags-
-
setPadChar
- Parameters:
ch-
-
setRealNumberNotation
- Parameters:
notation-
-
setRealNumberPrecision
- Parameters:
precision-
-
setStatus
- Parameters:
status-
-
showbase
See
Qt::showbase(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
skipWhiteSpace
-
status
-
uppercasebase
See
Qt::uppercasebase(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
uppercasedigits
See
Qt::uppercasedigits(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
ws
See
Qt::ws(QTextStream&) This member function returns the object itself.
- Returns:
- this
-
string
-
append
Appends a subsequence of the specified character sequence to thisQTextStream.- Specified by:
appendin interfaceAppendable
-
device
-
setString
@QtUninvokable public final <String extends Object & Appendable & CharSequence> void setString(String string, QIODeviceBase.OpenModeFlag ... openMode) -
setString
@QtUninvokable public final <String extends Object & Appendable & CharSequence> void setString(String string) -
setString
@QtUninvokable public final <String extends Object & Appendable & CharSequence> void setString(String string, QIODeviceBase.OpenMode openMode) -
setString
-
setString
-
setString
-
writeBytes
Delegate for
append(io.qt.core.QByteArray). -
writeBytes
Delegate for
append(io.qt.core.QByteArray). -
append
Overloaded function for
append(io.qt.core.QByteArray). -
writeChar
Delegate for
append(char). -
writeString
Delegate for
append(io.qt.core.QString). -
writeString
Delegate for
append(java.lang.String). -
writeByte
Delegate for
append(byte). -
writeString
Delegate for
append(java.lang.CharSequence). -
writeDouble
Delegate for
append(double). -
writeFloat
Delegate for
append(float). -
writeInt
Delegate for
append(int). -
writeLong
Delegate for
append(long). -
writeShort
Delegate for
append(short). -
readLine
Overloaded function for
readLine(long)withmaxlen = 0. -
setLocale
Overloaded function for
setLocale(io.qt.core.QLocale). -
setNumberFlags
Overloaded function for
setNumberFlags(io.qt.core.QTextStream.NumberFlags).
-