public final class XDIReaderRegistry extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addReader(Class<? extends XDIReader> readerClass) |
static XDIReader |
forFileExtension(String fileExtension,
Properties parameters)
Returns an XDIReader for the specified file extension, e.g.
|
static XDIReader |
forFormat(String format,
Properties parameters)
Returns an XDIReader for the specified format, e.g.
|
static XDIReader |
forMimeType(MimeType mimeType)
Returns an XDIReader for the specified mime type, e.g.
|
static AutoReader |
getAuto()
Returns an XDIReader for auto-detecting the format.
|
static XDIReader |
getDefault()
Returns an XDIReader for the default format.
|
static String[] |
getFileExtensions()
Returns all file extensions for which XDIReader implementations exist.
|
static String[] |
getFormats()
Returns all formats for which XDIReader implementations exist.
|
static MimeType[] |
getMimeTypes()
Returns all mime types for which XDIReader implementations exist.
|
static boolean |
supportsFileExtension(MimeType fileExtension)
Checks if we have an XDIReader that supports this file extension.
|
static boolean |
supportsFormat(String format)
Checks if we have an XDIReader that supports this format.
|
static boolean |
supportsMimeType(MimeType mimeType)
Checks if we have an XDIReader that supports this MIME type.
|
public static XDIReader forFormat(String format, Properties parameters)
public static XDIReader forFileExtension(String fileExtension, Properties parameters)
fileExtension
- The desired file extension.public static XDIReader forMimeType(MimeType mimeType)
mimeType
- The desired mime type.public static XDIReader getDefault()
public static AutoReader getAuto()
public static String[] getFormats()
public static String[] getFileExtensions()
public static MimeType[] getMimeTypes()
public static boolean supportsFormat(String format)
format
- The desired format.public static boolean supportsFileExtension(MimeType fileExtension)
fileExtension
- The desired file extension.public static boolean supportsMimeType(MimeType mimeType)
mimeType
- The desired mime type.Copyright © 2017. All rights reserved.