public class StdOFSNGetHandler extends Object implements OFSNGetHandler
Constructor and Description |
---|
StdOFSNGetHandler() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Properties conf)
Configures this handler with the provided configuration stored in a
Properties object. |
byte[] |
retrieveChunk(String filepath,
long offset,
int length)
Retrieves a chunk of data from the remote file.
|
long |
sizeOf(String filepath)
Returns the size of the remote data, which may be the entire file in
question, or some subset/transformation on it.
|
public byte[] retrieveChunk(String filepath, long offset, int length) throws ProductException
OFSNGetHandler
retrieveChunk
in interface OFSNGetHandler
filepath
- The path to the remote file.offset
- The offset in the remote data to retrieve.length
- The length of data to readProductException
- If any error occurs.public long sizeOf(String filepath)
OFSNGetHandler
sizeOf
in interface OFSNGetHandler
filepath
- The remote file in question.public void configure(Properties conf)
OFSNGetHandler
Properties
object.configure
in interface OFSNGetHandler
conf
- The configuration for this list handler.Copyright © 1999–2017 Apache OODT. All rights reserved.