OdfPackageWriter.writeMimetype

void writeMimetype(string mimeType)

Writes the mimetype entry.

This must be called first and exactly once. The mimetype entry is stored uncompressed as required by the ODF specification.

Parameters

mimeTypeThe MIME type string.

Throws

OdfPackageException if already finished or on I/O errors.
void writeMimetype(OdfDocumentType docType)

Writes the mimetype entry from a document type.

Parameters

docTypeThe document type.

Throws

OdfPackageException if already finished or on I/O errors.