public class CASProductHandler extends Object implements LargeProductQueryHandler
Describe your class here
.Constructor and Description |
---|
CASProductHandler() |
Modifier and Type | Method and Description |
---|---|
void |
close(String id)
Close off a product.
|
XMLQuery |
query(XMLQuery query)
Run a query.
|
byte[] |
retrieveChunk(String id,
long offset,
int length)
Retrieve a chunk of a product.
|
public CASProductHandler() throws MalformedURLException, ConnectionException
public XMLQuery query(XMLQuery query) throws ProductException
QueryHandler
query
in interface QueryHandler
query
- The query.ProductException
- if an error occurs.public void close(String id)
LargeProductQueryHandler
IOException
when closing a file.close
in interface LargeProductQueryHandler
id
- Product ID.public byte[] retrieveChunk(String id, long offset, int length) throws ProductException
LargeProductQueryHandler
retrieveChunk
in interface LargeProductQueryHandler
id
- Product ID.offset
- Where in the product to get a chunk of it.length
- How much of the product to get.ProductException
- if an error occurs.Copyright © 1999–2017 Apache OODT. All rights reserved.