Class CustomReaderFactory


  • public class CustomReaderFactory
    extends Object
    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.
    • Method Detail

      • resetToDefaultInstance

        public static void resetToDefaultInstance()
      • maybeOpen

        public SamReader maybeOpen​(URL url)
        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.