BASE_FORMAT_VERSION, DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
ImageIOFormat() |
ImageIOFormat(ImageReader reader) |
Modifier and Type | Method and Description |
---|---|
Format |
create(MimeType type)
Create an instance of this format corresponding to the given MIME type.
|
FormatReader |
createReader()
Instantiate a new
FormatReader for this format. |
String[] |
getDefaultExtensions()
The default file-extension for the format.
|
String |
getDescription()
Describes the format represented by this instance.
|
MimeType |
getMimeType()
Return the string-encoded MIME-Type of the format.
|
String |
getName()
Return the format's name.
|
int |
getPriority()
The ImageIO formats are tried with a slightly lower priority of
DEFAULT_PRIORITY - 10 in order to let specialized formats override ImageIO. |
String |
getVersion()
The version of the format support.
|
boolean |
isSupported(MimeType type)
Determine whether this format supports the given MIME type.
|
boolean |
matches(SeekableInputStream stream)
Within the read process this method is called to auto-determine the format of the data passed.
|
canRead, canWrite, createWriter, equals, hashCode, isSecondary, toString
public ImageIOFormat()
public ImageIOFormat(ImageReader reader) throws IOException
IOException
public String[] getDefaultExtensions()
Format
getDefaultExtensions
in class Format
Format.getDefaultExtensions()
public String getDescription()
Format
getDescription
in class Format
Format.getDescription()
public String getName()
Format
getName
in class Format
Format.getName()
public String getVersion()
Format
getVersion
in class Format
Format.getVersion()
public boolean matches(SeekableInputStream stream) throws IOException
Format
matches
in class Format
stream
- contains the data to be tested.IOException
- if an io error occursFormat.matches(com.levigo.jadice.document.io.SeekableInputStream)
public FormatReader createReader()
Format
FormatReader
for this format.createReader
in class Format
FormatReader
for this formatFormat.createReader()
public MimeType getMimeType()
Format
getMimeType
in class Format
public int getPriority()
DEFAULT_PRIORITY - 10
in order to let specialized formats override ImageIO.getPriority
in class Format
Format.getPriority()
public boolean isSupported(MimeType type)
Format
isSupported
in class Format
type
- the mime type in questionCopyright © 2024 levigo holding gmbh. All rights reserved.