|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.product.handlers.ofsn.MD5GetHandler
public class MD5GetHandler
A OFSNGetHandler to perform an MD5 for a file on the server side.
| Constructor Summary | |
|---|---|
MD5GetHandler()
|
|
| Method Summary | |
|---|---|
void |
configure(Properties conf)
Configures this handler with the provided configuration stored in a Properties object. |
static void |
main(String[] args)
Use this method ot generate a test MD5 of a provide File specified
in args[0]. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MD5GetHandler()
throws InstantiationException
InstantiationException| Method Detail |
|---|
public void configure(Properties conf)
OFSNGetHandlerProperties object.
configure in interface OFSNGetHandlerconf - The configuration for this list handler.
public byte[] retrieveChunk(String filepath,
long offset,
int length)
throws ProductException
OFSNGetHandler
retrieveChunk in interface OFSNGetHandlerfilepath - The path to the remote file.offset - The offset in the remote data to retrieve.length - The length of data to read
ProductException - If any error occurs.public long sizeOf(String filepath)
OFSNGetHandler
sizeOf in interface OFSNGetHandlerfilepath - The remote file in question.
public static void main(String[] args)
throws Exception
File specified
in args[0].
args - Only need to specify 1 arg, the full path to the File to
MD5.
Exception - If any error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||