public class GenericDocumentFormat extends FileFormatDescription
Modifier and Type | Field and Description |
---|---|
DocumentWriterFactory |
factory
The documentWriter to instanciate to write a document of this type (eg.
|
static GenericDocumentFormat |
OOoDocumentFormat |
static GenericDocumentFormat |
XHTMLDocumentFormat |
extension, id
Constructor and Description |
---|
GenericDocumentFormat(DocumentWriterFactory factory,
String id,
String extension)
Define a new generic document format.
|
Modifier and Type | Method and Description |
---|---|
static List<GenericDocumentFormat> |
getAllFormats() |
DocumentWriter |
getWriter() |
String |
toString() |
equals, getFormat, getFormat, getFormats
public static final GenericDocumentFormat XHTMLDocumentFormat
public static final GenericDocumentFormat OOoDocumentFormat
public final DocumentWriterFactory factory
public GenericDocumentFormat(DocumentWriterFactory factory, String id, String extension)
factory
- : The DocumentWriterFactory to create the instanceid
- : The name of the format (for the dropdown menu)extension
- : the extension to add to the exported filepublic DocumentWriter getWriter()
public static List<GenericDocumentFormat> getAllFormats()
public String toString()
toString
in class FileFormatDescription
Copyright © 2005–2020. All rights reserved.