public class ProductClient extends Object implements jpl.eda.product.Retriever
Constructor and Description |
---|
ProductClient(String serviceID)
Creates a new
ProductClient instance. |
Modifier and Type | Method and Description |
---|---|
void |
close(String productID)
Close off a large product.
|
jpl.eda.xmlquery.XMLQuery |
query(jpl.eda.xmlquery.XMLQuery q)
Query the product server.
|
byte[] |
retrieveChunk(String productID,
long offset,
int length)
Retrieve a chunk from a large product.
|
public ProductClient(String serviceID) throws jpl.eda.product.ProductException
ProductClient
instance.serviceID
- Name of the product server to contact.jpl.eda.product.ProductException
- if an error occurs.public jpl.eda.xmlquery.XMLQuery query(jpl.eda.xmlquery.XMLQuery q) throws jpl.eda.product.ProductException
q
- Queryjpl.eda.product.ProductException
- if an error occurs.public byte[] retrieveChunk(String productID, long offset, int length) throws jpl.eda.product.ProductException
retrieveChunk
in interface jpl.eda.product.Retriever
productID
- Product ID.offset
- Where in the product to retrieve the data.length
- How much data to get.jpl.eda.product.ProductException
- if an error occurs.public void close(String productID) throws jpl.eda.product.ProductException
close
in interface jpl.eda.product.Retriever
productID
- Product ID.jpl.eda.product.ProductException
- if an error occurs.Copyright © 2010–2017 Planetary Data System. All rights reserved.