Package htsjdk.samtools
Class CustomReaderFactory
java.lang.Object
htsjdk.samtools.CustomReaderFactory
Factory for creating custom readers for accessing API based resources,
e.g. ga4gh.
The configuration is controlled via custom_reader property (@see Defaults).
This allows injection of such readers from code bases outside HTSJDK.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Interface to be implemented by custom factory classes that register themselves with this factory and are loaded dynamically. -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomReaderFactory
Check if the url is supposed to be handled by the custom factory and if so attempt to create reader via an instance of this custom factory.static void
static void
setInstance
(CustomReaderFactory factory)
-
Method Details
-
setInstance
-
resetToDefaultInstance
public static void resetToDefaultInstance() -
getInstance
-
maybeOpen
Check if the url is supposed to be handled by the custom factory and if so attempt to create reader via an instance of this custom factory.- Returns:
- null if the url is not handled by this factory, SamReader otherwise.
-