- All Implemented Interfaces:
QIODeviceBase
,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 enum QTextStream::FieldAlignmentstatic enum
Java wrapper for Qt enum QTextStream::NumberFlagstatic final class
QFlags type for enumQTextStream.NumberFlag
static enum
Java wrapper for Qt enum QTextStream::RealNumberNotationstatic enum
Java wrapper for Qt enum QTextStream::StatusNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
Nested classes/interfaces inherited from interface io.qt.core.QIODeviceBase
QIODeviceBase.OpenMode, QIODeviceBase.OpenModeFlag
-
Constructor Summary
ModifierConstructorDescriptionQTextStream
(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) protected
Constructor for internal use only.QTextStream
(String string) QTextStream
(String string, QIODeviceBase.OpenMode openMode) QTextStream
(String string, QIODeviceBase.OpenModeFlag... openMode) QTextStream
(String string) QTextStream
(String string, QIODeviceBase.OpenMode openMode) QTextStream
(String string, QIODeviceBase.OpenModeFlag... openMode) -
Method Summary
Modifier and TypeMethodDescriptionfinal QTextStream
append
(byte v) final QTextStream
append
(char v) final QTextStream
append
(double v) final QTextStream
append
(float v) final QTextStream
append
(int v) final QTextStream
append
(long v) final QTextStream
append
(short v) final QTextStream
append
(QByteArray v) final QTextStream
append
(CharSequence csq, int start, int end) final QTextStream
final boolean
atEnd()
final boolean
final QTextStream
bin()
See Qt::binfinal QTextStream
bom()
See Qt::bomfinal QTextStream
center()
See Qt::centerfinal QTextStream
dec()
See Qt::decfinal QIODevice
device()
encoding()
final QTextStream
endl()
See Qt::endlfinal int
final QTextStream
fixed()
See Qt::fixedfinal QTextStream
flush()
See Qt::flushfinal QTextStream
See Qt::forcepointfinal QTextStream
See Qt::forcesignfinal boolean
final QTextStream
hex()
See Qt::hexfinal int
final QTextStream
left()
See Qt::leftfinal QLocale
locale()
final QTextStream
final QTextStream
final QTextStream
See Qt::noforcepointfinal QTextStream
See Qt::noforcesignfinal QTextStream
See Qt::noshowbasefinal QTextStream.NumberFlags
final QTextStream
oct()
See Qt::octfinal 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()
final String
readLine()
Overloaded function forreadLine(long)
withmaxlen = 0
.final String
readLine
(long maxlen) final long
readLong()
final QString
final short
final String
final int
final QTextStream
reset()
See Qt::resetfinal void
final QTextStream
right()
See Qt::rightfinal QTextStream
See Qt::scientificfinal boolean
seek
(long pos) final void
setAutoDetectUnicode
(boolean enabled) final void
final void
setEncoding
(QStringConverter.Encoding encoding) 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
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, QIODeviceBase.OpenMode openMode) void
setString
(String string, QIODeviceBase.OpenModeFlag... openMode) <String extends Object & Appendable & CharSequence>
voidsetString
(String string) <String extends Object & Appendable & CharSequence>
voidsetString
(String string, QIODeviceBase.OpenMode openMode) <String extends Object & Appendable & CharSequence>
voidsetString
(String string, QIODeviceBase.OpenModeFlag... openMode) final QTextStream
showbase()
See Qt::showbasefinal void
final QTextStream.Status
status()
final CharSequence
string()
final QTextStream
final QTextStream
final QTextStream
writeByte
(byte ch) final QTextStream
writeBytes
(QByteArray array) final QTextStream
writeChar
(char ch) final QTextStream
writeDouble
(double f) final QTextStream
writeFloat
(float f) final QTextStream
writeInt
(int i) final QTextStream
writeLong
(long i) final QTextStream
writeShort
(short i) final QTextStream
final QTextStream
final QTextStream
ws()
See Qt::wsMethods inherited from class io.qt.QtObject
dispose, equals, isDisposed
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.qt.QtObjectInterface
dispose, isDisposed
-
Constructor Details
-
QTextStream
public QTextStream() -
QTextStream
Overloaded constructor for
QTextStream(io.qt.core.QByteArray, io.qt.core.QIODeviceBase.OpenMode)
. -
QTextStream
Overloaded constructor for
QTextStream(io.qt.core.QByteArray, io.qt.core.QIODeviceBase.OpenMode)
withopenMode = new io.qt.core.QIODeviceBase.OpenMode(3)
. -
QTextStream
-
QTextStream
-
QTextStream
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QTextStream
-
QTextStream
public QTextStream(String string) -
QTextStream
-
QTextStream
-
QTextStream
-
QTextStream
-
-
Method Details
-
atEnd
-
autoDetectUnicode
-
encoding
-
fieldAlignment
-
fieldWidth
-
generateByteOrderMark
-
integerBase
-
locale
-
numberFlags
-
writeChar
-
writeByte
-
writeBytes
-
writeString
-
writeString
-
writeDouble
-
writeFloat
-
writeLong
-
writeInt
-
writeShort
-
readBytes
-
readChar
-
readQString
-
readByte
-
readString
-
readDouble
-
readFloat
-
readLong
-
readInt
-
readShort
-
padChar
-
pos
-
read
-
readAll
-
readLine
Overloaded function for
readLine(long)
withmaxlen = 0
. -
readLine
-
realNumberNotation
-
realNumberPrecision
-
resetStatus
-
seek
-
setAutoDetectUnicode
-
setDevice
-
setEncoding
-
setFieldAlignment
-
setFieldWidth
-
setGenerateByteOrderMark
-
setIntegerBase
-
setLocale
-
setNumberFlags
Overloaded function for
setNumberFlags(io.qt.core.QTextStream.NumberFlags)
. -
setNumberFlags
-
setPadChar
-
setRealNumberNotation
-
setRealNumberPrecision
-
setStatus
-
skipWhiteSpace
-
status
-
string
-
append
- Specified by:
append
in interfaceAppendable
-
device
-
setString
public <String extends Object & Appendable & CharSequence> void setString(String string, QIODeviceBase.OpenModeFlag... openMode) -
setString
-
setString
public <String extends Object & Appendable & CharSequence> void setString(String string, QIODeviceBase.OpenMode openMode) -
setString
-
setString
-
setString
-
append
-
append
- Specified by:
append
in interfaceAppendable
-
append
-
append
-
append
-
append
- Specified by:
append
in interfaceAppendable
-
append
-
append
-
append
-
append
-
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
-