Package htsjdk.samtools.util.htsget
Class HtsgetResponse.Block
- java.lang.Object
-
- htsjdk.samtools.util.htsget.HtsgetResponse.Block
-
- Enclosing class:
- HtsgetResponse
public static class HtsgetResponse.Block extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getData()
Gets data from this block either from its base64 encoded data url or by making an http requestHtsgetClass
getDataClass()
Map<String,String>
getHeaders()
URI
getUri()
static HtsgetResponse.Block
parse(org.json.simple.JSONObject blockJson)
Parse a single data block from a json value
-
-
-
Constructor Detail
-
Block
public Block(URI uri, Map<String,String> headers, HtsgetClass dataClass)
-
-
Method Detail
-
getUri
public URI getUri()
-
getDataClass
public HtsgetClass getDataClass()
-
getData
public InputStream getData()
Gets data from this block either from its base64 encoded data url or by making an http request- Returns:
- InputStream of data from this block
-
parse
public static HtsgetResponse.Block parse(org.json.simple.JSONObject blockJson)
Parse a single data block from a json value- Parameters:
blockJson
- json value representing a block- Returns:
- parsed block object
-
-