public class HtsCodecRegistry
extends java.lang.Object
HtsCodec instances.
Registries are populated with HtsCodec objects that are either discovered
and registered statically in the HtsDefaultRegistry, or manually registered in a private
registry (see createPrivateRegistry()) via the registerCodec(HtsCodec)
method.
The global static HtsDefaultRegistry is immutable. A private, mutable registry for registering
custom codecs can be created with createPrivateRegistry().
| Modifier | Constructor and Description |
|---|---|
protected |
HtsCodecRegistry()
Create a registry.
|
| Modifier and Type | Method and Description |
|---|---|
static HtsCodecRegistry |
createPrivateRegistry()
Create a mutable registry for private use.
|
HaploidReferenceResolver |
getHaploidReferenceResolver()
Get the
HaploidReferenceResolver for this registry. |
ReadsResolver |
getReadsResolver()
Get the
ReadsResolver for this registry. |
VariantsResolver |
getVariantsResolver()
Get the
VariantsResolver for this registry. |
HtsCodec<?,?> |
registerCodec(HtsCodec<?,?> codec)
Add a codec to the registry.
|
protected HtsCodecRegistry()
createPrivateRegistry().public HtsCodec<?,?> registerCodec(HtsCodec<?,?> codec)
HtsCodec.getFileFormat() and HtsCodec.getVersion() methods) is already
registered, the new registry is updated to contain the new codec, and the previously registered
codec is returned.codec - the codec to be addedpublic static HtsCodecRegistry createPrivateRegistry()
HtsDefaultRegistry is immutable, but
a private registry can be populated with, and used to resolve against, custom codecs. A private registry
is initially populated with all codecs that are registered in the HtsDefaultRegistry. Custom
codecs can be then be installed into the private registry using
registerCodec(HtsCodec).public HaploidReferenceResolver getHaploidReferenceResolver()
HaploidReferenceResolver for this registry.HaploidReferenceResolver for this registrypublic ReadsResolver getReadsResolver()
ReadsResolver for this registry.ReadsResolver for this registrypublic VariantsResolver getVariantsResolver()
VariantsResolver for this registry.VariantsResolver for this registry