| Modifier and Type | Class and Description |
|---|---|
| public static class | ImageFormatDescription.
Represents a sequences of bytes which can appear at the beginning of the stream of an image stored in this format. |
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: the file extension(s) for this format.Get the extension(s) used for a file stored in this format, preferably in lower case. |
| public String | Returns: the format name.Get the name of the format, for example "JPEG," "PNG," and so on, preferably in upper case. |
| public List | Returns: the MIME type(s) of this format.Get the MIME subtype(s) of the "image" type corresponding to this format, for example, "jpeg" "png," etc. |
| public List | Returns: the signatures of an image stream in this format.Get the possible signatures which may appear at the beginning of the stream of an image stored in this format. |
| getExtensions | back to summary |
|---|---|
| public List Get the extension(s) used for a file stored in this format, preferably in lower case. | |
| getFormatName | back to summary |
|---|---|
| public String getFormatName() Get the name of the format, for example "JPEG," "PNG," and so on, preferably in upper case.
| |
| getMIMESubtypes | back to summary |
|---|---|
| public List Get the MIME subtype(s) of the "image" type corresponding to this format, for example, "jpeg" "png," etc. | |
| getSignatures | back to summary |
|---|---|
| public List Get the possible signatures which may appear at the beginning of the stream of an image stored in this format.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object other)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public int | |
| public boolean |
| bytes | back to summary |
|---|---|
| private final byte[] bytes | |
| Signature | back to summary |
|---|---|
| public Signature(final byte... bytes) | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getLength | back to summary |
|---|---|
| public int getLength() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| matches | back to summary |
|---|---|
| public boolean matches(final byte[] streamBytes) | |