public class OSTypeStructuresRegistry extends Object
Represents the OSTypeStructure
resources registry.
Modifier and Type | Method and Description |
---|---|
static IOSTypeStructureLoader |
getFirstSupportedDescriptor(InputStream stream) |
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) |
static OSTypeStructure |
loadResourceByFirstSupportedDescriptorInternal_internalized(com.aspose.ms.System.IO.Stream 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)
public static OSTypeStructure loadResourceByFirstSupportedDescriptorInternal_internalized(com.aspose.ms.System.IO.Stream 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 OSTypeStructure loadResourceByFirstSupportedDescriptor(InputStream stream)
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-2016 Aspose Pty Ltd. All Rights Reserved.