Package htsjdk.samtools.seekablestream
Class SeekableStreamFactory
- java.lang.Object
-
- htsjdk.samtools.seekablestream.SeekableStreamFactory
-
public class SeekableStreamFactory extends Object
Singleton class for gettingSeekableStream
s from URL/paths Applications using this library can set their own factory
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ISeekableStreamFactory
getInstance()
static boolean
isFilePath(String path)
Does this path point to a regular file on disk and not something like a URL?static void
setInstance(ISeekableStreamFactory factory)
-
-
-
Method Detail
-
setInstance
public static void setInstance(ISeekableStreamFactory factory)
-
getInstance
public static ISeekableStreamFactory getInstance()
-
isFilePath
public static boolean isFilePath(String path)
Does this path point to a regular file on disk and not something like a URL?- Parameters:
path
- the path to test- Returns:
- true if the path is to a file on disk
-
-