java.lang.Object
io.qt.QtObject
io.qt.gui.QTextDocumentWriter
- All Implemented Interfaces:
QtObjectInterface
Format-independent interface for writing a QTextDocument to files or other devices
Java wrapper for Qt class QTextDocumentWriter
- Since:
- This class was introduced in Qt 4.5.
-
Constructor Summary
ConstructorDescriptionQTextDocumentWriter
(QIODevice device, byte [] format) Overloaded constructor forQTextDocumentWriter(io.qt.core.QIODevice, io.qt.core.QByteArray)
.QTextDocumentWriter
(QIODevice device, QByteArray format) QTextDocumentWriter
(String fileName) Overloaded constructor forQTextDocumentWriter(java.lang.String, io.qt.core.QByteArray)
withformat = new io.qt.core.QByteArray()
.QTextDocumentWriter
(String fileName, byte [] format) Overloaded constructor forQTextDocumentWriter(java.lang.String, io.qt.core.QByteArray)
.QTextDocumentWriter
(String fileName, QByteArray format) -
Method Summary
Modifier and TypeMethodDescriptionfinal QTextCodec
codec()
final QIODevice
device()
final String
fileName()
final QByteArray
format()
final void
setCodec
(QTextCodec codec) final void
final void
setFileName
(String fileName) final void
setFormat
(byte [] format) Overloaded function forsetFormat(io.qt.core.QByteArray)
.final void
setFormat
(QByteArray format) static QList<QByteArray>
final boolean
write
(QTextDocumentFragment fragment) final boolean
write
(QTextDocument document) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QTextDocumentWriter
public QTextDocumentWriter() -
QTextDocumentWriter
- Parameters:
device
-format
-
-
QTextDocumentWriter
- Parameters:
fileName
-format
-
-
QTextDocumentWriter
Overloaded constructor for
QTextDocumentWriter(io.qt.core.QIODevice, io.qt.core.QByteArray)
. -
QTextDocumentWriter
Overloaded constructor for
QTextDocumentWriter(java.lang.String, io.qt.core.QByteArray)
withformat = new io.qt.core.QByteArray()
. -
QTextDocumentWriter
Overloaded constructor for
QTextDocumentWriter(java.lang.String, io.qt.core.QByteArray)
.
-
-
Method Details
-
codec
- Returns:
-
device
- Returns:
-
fileName
- Returns:
-
format
- Returns:
-
setCodec
- Parameters:
codec
-
-
setDevice
- Parameters:
device
-
-
setFileName
- Parameters:
fileName
-
-
setFormat
- Parameters:
format
-
-
write
- Parameters:
fragment
-- Returns:
-
write
- Parameters:
document
-- Returns:
-
supportedDocumentFormats
- Returns:
-
setFormat
Overloaded function for
setFormat(io.qt.core.QByteArray)
.
-