public final class OSTypeStructuresRegistry extends Object
Represents the OSTypeStructure
resources registry.
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.
The first opener descriptor will be actually the last registered.
public static IOSTypeStructureLoader getFirstSupportedDescriptor(InputStream stream)
Gets the first supported opener descriptor.
stream
- The stream.
The first loader will be actually the last registered.
public static OSTypeStructure loadResourceByFirstSupportedDescriptor(InputStream stream)
Loads OSTypeStructure
using first found opener suitable for the specified stream
.
stream
- The stream.
The first opener will be actually the last registered.
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.