public final class OSTypeStructuresRegistry extends Object
Represents the OSTypeStructure resources registry.
| Constructor and Description |
|---|
OSTypeStructuresRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static IOSTypeStructureLoader |
getFirstSupportedDescriptor(InputStream stream)
Gets the first supported opener descriptor.
|
static IOSTypeStructureLoader |
getFirstSupportedDescriptorByTypeName(String descriptorTypeName)
Gets the first supported descriptor by its type name.
|
static IOSTypeStructureLoader[] |
getRegisteredDescriptors()
Gets the registered descriptors.
|
static OSTypeStructure |
loadResourceByFirstSupportedDescriptor(InputStream stream)
Loads
OSTypeStructure using first found opener suitable for the specified stream. |
static void |
registerOpener(IOSTypeStructureLoader openerDescriptor)
Registers the opener.
|
static void |
unregisterOpener(IOSTypeStructureLoader openerDescriptor)
Unregisters the opener.
|
public static IOSTypeStructureLoader[] getRegisteredDescriptors()
Gets the registered descriptors.
Value: The registered descriptors.public static IOSTypeStructureLoader getFirstSupportedDescriptorByTypeName(String descriptorTypeName)
Gets the first supported descriptor by its type name.
descriptorTypeName - The descriptor type name.
public static IOSTypeStructureLoader getFirstSupportedDescriptor(InputStream stream)
Gets the first supported opener descriptor.
stream - The stream.
public static OSTypeStructure loadResourceByFirstSupportedDescriptor(InputStream stream)
Loads OSTypeStructure using first found opener suitable for the specified stream.
stream - The stream.
LayerResource or null if no opener is found.public static void registerOpener(IOSTypeStructureLoader openerDescriptor)
Registers the opener.
openerDescriptor - The opener descriptor to register.public static void unregisterOpener(IOSTypeStructureLoader openerDescriptor)
Unregisters the opener.
openerDescriptor - The opener descriptor to unregister.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.