Package com.aquima.interactions.composer
Class OutputFormat
java.lang.Object
com.aquima.interactions.composer.OutputFormat
- All Implemented Interfaces:
Serializable
This class defines the various output formats for which a renderer might be available in the document engine. Use the
getOutputFormats method of the document engine to check which output formats are actually supported.
- Since:
- 6.0
- Author:
- Jon van Leuven, O. Kerpershoek
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OutputFormat
This member defines the Advanced Function Presentation (AFP) output format.static final OutputFormat
This member defines the AWT output format.static final OutputFormat
This member defines the Comma-separated values (CSV) output format.static final OutputFormat
This member defines the Hyper Text Markup Language (HTML) output format.static final OutputFormat
This member defines the Printer Control Language (PCL) output format.static final OutputFormat
This member defines the portable document format (PDF) output format.static final OutputFormat
This member defines the Portable Network Graphics (PNG) output format.static final OutputFormat
This member defines the postscript (PS) output format.static final OutputFormat
This member defines the Rich Text Format (RTF) output format.static final OutputFormat
This member defines the Tagged Image File Format (TIFF) output format.static final OutputFormat
This member defines the plain text (TXT) output format.static final OutputFormat
This member defines the Extensible Markup Language (XML) output format. -
Constructor Summary
ConstructorsConstructorDescriptionOutputFormat
(String name, String extension, String contentType) Constructs the output format for the specified name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method will compare this instance against the object passed to the method, and return true when both are identical.static OutputFormat
This method returns one of the known output formats for the specified name.This method returns the default content type that is used for files of this type.This method returns the default extension that is used for files of this type.getName()
This method returns the name of the output format.int
hashCode()
This method returns a hash code based on the id of the output format.toString()
-
Field Details
-
PDF
This member defines the portable document format (PDF) output format. -
PS
This member defines the postscript (PS) output format. -
PCL
This member defines the Printer Control Language (PCL) output format. -
AFP
This member defines the Advanced Function Presentation (AFP) output format. -
RTF
This member defines the Rich Text Format (RTF) output format. -
TXT
This member defines the plain text (TXT) output format. -
AWT
This member defines the AWT output format. -
PNG
This member defines the Portable Network Graphics (PNG) output format. -
TIFF
This member defines the Tagged Image File Format (TIFF) output format. -
XML
This member defines the Extensible Markup Language (XML) output format. -
HTML
This member defines the Hyper Text Markup Language (HTML) output format. -
CSV
This member defines the Comma-separated values (CSV) output format.
-
-
Constructor Details
-
OutputFormat
Constructs the output format for the specified name. The name is used as identifier, and is thus required.- Parameters:
name
- The name of the output format.extension
- The default extension that is used for files of this type.contentType
- The default content type that is used for files of this type.
-
-
Method Details
-
forName
This method returns one of the known output formats for the specified name.- Parameters:
name
- The name of the requested output format.- Returns:
- The output format for the specified name.
-
getName
This method returns the name of the output format.- Returns:
- the name of the output format.
-
getExtension
This method returns the default extension that is used for files of this type.- Returns:
- the default extension that is used for files of this type.
-
getContentType
This method returns the default content type that is used for files of this type.- Returns:
- the default content type that is used for files of this type, may be null
-
toString
-
hashCode
public int hashCode()This method returns a hash code based on the id of the output format. -
equals
This method will compare this instance against the object passed to the method, and return true when both are identical.
-