TextualFormats

Contents
[ ]

Inheritance: java.lang.Object, com.groupdocs.editor.formats.abstraction.FormatFamilyBase, com.groupdocs.editor.formats.abstraction.DocumentFormatBase

public class TextualFormats extends DocumentFormatBase

Encapsulates all textual (text-based) formats, including markup (XML, HTML) and others. Includes the following formats: Html, Txt, Xml. Md, Json.

Fields

Field Description
Html HyperText Markup Language document (HTML) is the extension for web pages created for display in browsers.
Xml eXtensible Markup Language document (XML) that is similar to HTML but different in using tags for defining objects.
Txt Plain Text Document (TXT) represents a text document that contains plain text in the form of lines.
Md Markdown is a lightweight markup language for creating formatted text using a plain-text editor.
Json JSON (JavaScript Object Notation) is an open standard file format for sharing data that uses human-readable text to store and transmit data.
Mhtml MIME encapsulation of aggregate HTML documents is a web page archive format used to combine, in a single computer file, the HTML code and its companion resources.
Chm Microsoft Compiled HTML Help is a Microsoft proprietary online help binary format, consisting of a collection of HTML pages, an index and other navigation tools.

Methods

Method Description
getAll() Gets an enumerable collection of all TextualFormats.
fromExtension(String extension) Retrieves an instance of the specified type TextualFormats that has the specified file extension.
fromString(String extension) Converts a string representing a file extension to a TextualFormats object.

Html

public static final TextualFormats Html

HyperText Markup Language document (HTML) is the extension for web pages created for display in browsers. Learn more about this file format here .

Xml

public static final TextualFormats Xml

eXtensible Markup Language document (XML) that is similar to HTML but different in using tags for defining objects. Learn more about this file format here .

Txt

public static final TextualFormats Txt

Plain Text Document (TXT) represents a text document that contains plain text in the form of lines. Learn more about this file format here .

Md

public static final TextualFormats Md

Markdown is a lightweight markup language for creating formatted text using a plain-text editor. Learn more about this file format here .

Json

public static final TextualFormats Json

JSON (JavaScript Object Notation) is an open standard file format for sharing data that uses human-readable text to store and transmit data. Learn more about this file format here .

Mhtml

public static final TextualFormats Mhtml

MIME encapsulation of aggregate HTML documents is a web page archive format used to combine, in a single computer file, the HTML code and its companion resources. Learn more about this file format here .

Chm

public static final TextualFormats Chm

Microsoft Compiled HTML Help is a Microsoft proprietary online help binary format, consisting of a collection of HTML pages, an index and other navigation tools. Learn more about this file format here .

getAll()

public static List<TextualFormats> getAll()

Gets an enumerable collection of all TextualFormats.

Value: An IEnumerable{TextualFormats} containing all instances of TextualFormats.

Returns: java.util.List<com.groupdocs.editor.formats.TextualFormats>

fromExtension(String extension)

public static TextualFormats fromExtension(String extension)

Retrieves an instance of the specified type TextualFormats that has the specified file extension.

Parameters:

Parameter Type Description
extension java.lang.String The file extension of the document format.

Returns: TextualFormats - An instance of the specified type TextualFormats with the specified file extension.

fromString(String extension)

public static TextualFormats fromString(String extension)

Converts a string representing a file extension to a TextualFormats object.

Parameters:

Parameter Type Description
extension java.lang.String The file extension to convert. If the extension contains multiple periods, the part after the last period is used.

Returns: TextualFormats - A TextualFormats object corresponding to the specified file extension.