public class EBookFormats extends Object implements IDocumentFormat
Modifier and Type | Class and Description |
---|---|
static class |
EBookFormats.AllEnumerable
Implements IEnumerable generic interface, that enables a 'foreach' possibility for the EBookFormats type
|
Modifier and Type | Field and Description |
---|---|
static EBookFormats.AllEnumerable |
All
Returns an internal class, that provides enumerable possibilities over all existing EBook formats
|
static EBookFormats |
Epub
Electronic Publication (ePub) format is an e-book file format that provide a standard digital publication format for publishers and consumers.
|
static EBookFormats |
Mobi
MOBI is the name given to the format developed for the MobiPocket Reader.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(EBookFormats other)
Determines whether this instance is equal to the other specified EBookFormats instance
|
boolean |
equals(IDocumentFormat other)
Determines whether this instance is equal to the other specified IDocumentFormat instance
|
boolean |
equals(Object obj)
Determines whether this instance is equal to the other specified object, that is presumably of boxed EBookFormats
|
static EBookFormats |
fromExtension(String extension)
Returns instance of
EBookFormats structure, associated to specified filename extension, or throws an exception, if extension cannot be properly parsed |
String |
getExtension()
Returns an extension (without leading dot character) of this EBook format in lower case
|
String |
getMime()
Returns a MIME code for this format
|
String |
getName()
Returns a formal full name of this eBook format
|
int |
hashCode()
Returns a hash-code, that is immutable for this instance
|
static boolean |
op_Equality(EBookFormats first,
EBookFormats second)
Checks two given EBookFormats instances on equality
|
static boolean |
op_Inequality(EBookFormats first,
EBookFormats second)
Checks two given EBookFormats instances on inequality
|
String |
toString()
Returns a format name of this format
|
public static final EBookFormats.AllEnumerable All
Returns an internal class, that provides enumerable possibilities over all existing EBook formats
public static final EBookFormats Epub
Electronic Publication (ePub) format is an e-book file format that provide a standard digital publication format for publishers and consumers.
Learn more about this file format <a href="https://docs.fileformat.com/ebook/epub/">here</a>
.
public static final EBookFormats Mobi
MOBI is the name given to the format developed for the MobiPocket Reader. It is currently used by Amazon with a slightly different DRM scheme and called AZW.
Learn more about this file format <a href="https://docs.fileformat.com/ebook/mobi/">here</a>
.
public final boolean equals(EBookFormats other)
Determines whether this instance is equal to the other specified EBookFormats instance
other
- Other EBookFormats instance, that should be checked on equality with thispublic final boolean equals(IDocumentFormat other)
Determines whether this instance is equal to the other specified IDocumentFormat instance
other
- Other IDocumentFormat instance. If it is not a EBookFormats, method will return 'false'public boolean equals(Object obj)
Determines whether this instance is equal to the other specified object, that is presumably of boxed EBookFormats
public static EBookFormats fromExtension(String extension)
Returns instance of EBookFormats
structure, associated to specified filename extension, or throws an exception, if extension cannot be properly parsed
extension
- Filename extension of any supportable EBook format, with or without leading dot character, case-independent.
Cannot be NULL or empty, should be valid.EBookFormats
structure on success or thrown exception on failurepublic final String getExtension()
Returns an extension (without leading dot character) of this EBook format in lower case
getExtension
in interface IDocumentFormat
public final String getMime()
Returns a MIME code for this format
getMime
in interface IDocumentFormat
public final String getName()
Returns a formal full name of this eBook format
getName
in interface IDocumentFormat
public int hashCode()
Returns a hash-code, that is immutable for this instance
public static boolean op_Equality(EBookFormats first, EBookFormats second)
Checks two given EBookFormats instances on equality
first
- First EBookFormats instance to checksecond
- Second EBookFormats instance to checkpublic static boolean op_Inequality(EBookFormats first, EBookFormats second)
Checks two given EBookFormats instances on inequality
first
- First EBookFormats instance to checksecond
- Second EBookFormats instance to check