Package htsjdk.samtools.seekablestream
Class SeekableStreamFactory
java.lang.Object
htsjdk.samtools.seekablestream.SeekableStreamFactory
Singleton class for getting
SeekableStream
s from URL/paths
Applications using this library can set their own factory-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static ISeekableStreamFactory
static boolean
is this path being handled by one of the legacy SeekableStream types (http(s) / ftp)static boolean
isFilePath
(String path) Deprecated.static void
setInstance
(ISeekableStreamFactory factory)
-
Field Details
-
FILE_SCHEME
- See Also:
-
-
Method Details
-
setInstance
-
getInstance
-
isFilePath
Deprecated.this method is simplistic and no longer particularly useful since IOPath allows similar access to various non-file data sources, internal use has been replaced withisBeingHandledByLegacyUrlSupport(String)
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
-
isBeingHandledByLegacyUrlSupport
is this path being handled by one of the legacy SeekableStream types (http(s) / ftp)- Parameters:
path
- a path to check- Returns:
- if the path is not being handled by a FileSystemProvider and it can be read by legacy streams
-
canBeHandledByLegacyUrlSupport
-
isBeingHandledByLegacyUrlSupport(String)