ImageLoadersRegistry

Inheritance: java.lang.Object

public final class ImageLoadersRegistry

يمثل سجل محمّلات الصور.

الطرق

طريقةالوصف
getRegisteredFormats()يحصل على صيغ تحميل الصور المسجلة.
getRegisteredDescriptors()يحصل على الوصفيات المسجلة.
register(IImageLoaderDescriptor imageLoaderDescriptor)يسجل وصيفة محمل الصورة المحددة.
getFirstSupportedDescriptorByTypeName(String descriptorTypeName)يحصل على أول وصيفة مدعومة باسم نوعها.
getFirstSupportedDescriptorByFileFormat(long fileFormat)يحصل على أول صيغة ملف مدعومة باسم نوعها.
getFirstSupportedDescriptor(InputStream stream, LoadOptions loadOptions)يحصل على أول وصيفة مدعومة تم العثور عليها مناسبة للـ stream المحدد وباختياري loadOptions.
createFirstSupportedLoader(InputStream stream, LoadOptions loadOptions)ينشئ أول محمل يتم العثور عليه مناسب للمحدد stream وloadOptions اختياريًا.
registerLoader(IImageLoaderDescriptor loaderDescriptor)يسجل المحمل.
unregisterLoader(IImageLoaderDescriptor loaderDescriptor)يلغي تسجيل المحمل.

getRegisteredFormats()

public static long getRegisteredFormats()

يحصل على صيغ تحميل الصور المسجلة.

القيمة: صيغ تحميل الصور المسجلة.

Returns: long

getRegisteredDescriptors()

public static IImageLoaderDescriptor[] getRegisteredDescriptors()

يحصل على الوصفيات المسجلة.

القيمة: الوصفيات المسجلة.

Returns: com.aspose.imaging.IImageLoaderDescriptor[]

register(IImageLoaderDescriptor imageLoaderDescriptor)

public static synchronized void register(IImageLoaderDescriptor imageLoaderDescriptor)

يسجل وصيفة محمل الصورة المحددة.

Parameters:

معاملنوعالوصف
imageLoaderDescriptorIImageLoaderDescriptorوصف محمل الصورة.

getFirstSupportedDescriptorByTypeName(String descriptorTypeName)

public static IImageLoaderDescriptor getFirstSupportedDescriptorByTypeName(String descriptorTypeName)

يحصل على أول وصيفة مدعومة باسم نوعها.

Parameters:

معاملنوعالوصف
descriptorTypeNamejava.lang.String

وصف أول محمل سيكون فعليًا آخر محمل تم تسجيله. |

Returns: IImageLoaderDescriptor - The first found loader descriptor or null if not such descriptor is found.

getFirstSupportedDescriptorByFileFormat(long fileFormat)

public static IImageLoaderDescriptor getFirstSupportedDescriptorByFileFormat(long fileFormat)

يحصل على أول صيغة ملف مدعومة باسم نوعها.

Parameters:

معاملنوعالوصف
fileFormatlong

وصف أول محمل سيكون فعليًا آخر محمل تم تسجيله. |

Returns: IImageLoaderDescriptor - The first found loader descriptor or null if not such descriptor is found.

getFirstSupportedDescriptor(InputStream stream, LoadOptions loadOptions)

public static IImageLoaderDescriptor getFirstSupportedDescriptor(InputStream stream, LoadOptions loadOptions)

يحصل على أول وصيفة مدعومة تم العثور عليها مناسبة للـ stream المحدد وباختياري loadOptions.

Parameters:

معاملنوعالوصف
التدفقjava.io.InputStreamالمجرى.
loadOptionsLoadOptions

وصف أول محمل سيكون فعليًا آخر محمل تم تسجيله. |

Returns: IImageLoaderDescriptor - The loader descriptor which supports the specified stream and loadOptions or null if no such descriptor is found.

createFirstSupportedLoader(InputStream stream, LoadOptions loadOptions)

public static IImageLoader createFirstSupportedLoader(InputStream stream, LoadOptions loadOptions)

ينشئ أول محمل يتم العثور عليه مناسب للمحدد stream وloadOptions اختياريًا.

Parameters:

معاملنوعالوصف
التدفقjava.io.InputStreamالمجرى.
loadOptionsLoadOptions

أول محمل سيكون فعليًا آخر محمل تم تسجيله. |

Returns: IImageLoader - The loader which supports the specified stream and loadOptions or null if no such loader is found.

registerLoader(IImageLoaderDescriptor loaderDescriptor)

public static void registerLoader(IImageLoaderDescriptor loaderDescriptor)

يسجل المحمل.

Parameters:

معاملنوعالوصف
loaderDescriptorIImageLoaderDescriptorوصف المحمل للتسجيل.

unregisterLoader(IImageLoaderDescriptor loaderDescriptor)

public static synchronized void unregisterLoader(IImageLoaderDescriptor loaderDescriptor)

يلغي تسجيل المحمل.

Parameters:

معاملنوعالوصف
loaderDescriptorIImageLoaderDescriptorوصف المحمل لإلغاء التسجيل.