public enum FileFormat extends Enum<FileFormat>
| Enum Constant and Description |
|---|
EPUB
An EPUB electronic book.
|
MOBI
A MOBI electronic book.
|
PDF
A PDF file.
|
SPREADSHEET
A spreadsheet file.
|
UNKNOWN
The file type is not recognized.
|
WORD_PROCESSING
A word processing file.
|
| Modifier and Type | Method and Description |
|---|---|
static FileFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileFormat UNKNOWN
public static final FileFormat SPREADSHEET
A spreadsheet file contains data in the form of rows and columns. You can open, view, and edit such files using spreadsheet software such as Microsoft Excel, available for both Windows and macOS. Similarly, Google Sheets is a free online spreadsheet tool that works in any web browser.
Learn more about this file format: https://wiki.fileformat.com/spreadsheet/
public static final FileFormat WORD_PROCESSING
A word processing file contains user information in plain text or rich text format. Plain text files contain unformatted text with no font or page settings. In contrast, rich text formats allow font styles, page margins, headings, bullets, numbering, and other formatting features.
Learn more about this file format: https://wiki.fileformat.com/word-processing/
public static final FileFormat PDF
Portable Document Format (PDF) was introduced by Adobe in the 1990s to provide a standard for representing documents independently of software, hardware, or operating systems.
Learn more about this file format: https://wiki.fileformat.com/view/pdf/
public static final FileFormat EPUB
Files with the .epub extension are e-book files that provide a standard digital publication format for publishers and consumers. The format is widely supported by e-readers and software applications.
Learn more about this file format: https://wiki.fileformat.com/ebook/epub/
public static final FileFormat MOBI
The MOBI file format is one of the most widely used e-book formats. It evolved from the older OEB (Open Ebook Format) and was the proprietary format for the Mobipocket Reader.
Learn more about this file format: https://wiki.fileformat.com/ebook/mobi/
public static FileFormat[] values()
for (FileFormat c : FileFormat.values()) System.out.println(c);
public static FileFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2026. All rights reserved.