java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QTextStream
- All Implemented Interfaces:
QtObjectInterface
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
-
Constructor Summary
ModifierConstructorDescriptionQTextStream
(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) protected
Constructor for internal use only.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 boolean
atEnd()
final boolean
final QTextCodec
codec()
final QIODevice
device()
final int
final void
flush()
final boolean
final int
final QLocale
locale()
final QTextStream.NumberFlags
final char
padChar()
final long
pos()
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 short
final String
final int
final void
reset()
final void
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
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 void
final QTextStream.Status
status()
final CharSequence
string()
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
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QTextStream
public QTextStream() -
QTextStream
Overloaded constructor for
QTextStream(io.qt.core.QByteArray, io.qt.core.QIODevice.OpenMode)
. -
QTextStream
Overloaded constructor for
QTextStream(io.qt.core.QByteArray, io.qt.core.QIODevice.OpenMode)
withopenMode = new io.qt.core.QIODevice.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
-
codec
-
fieldAlignment
-
fieldWidth
-
flush
-
generateByteOrderMark
-
integerBase
-
locale
-
numberFlags
-
writeChar
-
writeByte
-
writeBytes
-
writeString
-
writeDouble
-
writeFloat
-
writeLong
-
writeInt
-
writeShort
-
readBytes
-
readChar
-
readString
-
readByte
-
readDouble
-
readFloat
-
readLong
-
readInt
-
readShort
-
padChar
-
pos
-
read
-
readAll
-
readLine
Overloaded function for
readLine(long)
withmaxlen = 0
. -
readLine
-
realNumberNotation
-
realNumberPrecision
-
reset
-
resetStatus
-
seek
-
setAutoDetectUnicode
-
setCodec
-
setCodec
-
setDevice
-
setFieldAlignment
-
setFieldWidth
-
setGenerateByteOrderMark
-
setIntegerBase
-
setLocale
-
setNumberFlags
Overloaded function for
setNumberFlags(io.qt.core.QTextStream.NumberFlags)
. -
setNumberFlags
-
setPadChar
-
setRealNumberNotation
-
setRealNumberPrecision
-
setStatus
-
skipWhiteSpace
-
status
-
string
-
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
-