public class MD5GetHandler extends Object implements OFSNGetHandler
OFSNGetHandler to perform an MD5 for a file on the server side.| Constructor and Description | 
|---|
| MD5GetHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | configure(Properties conf)Configures this handler with the provided configuration stored in a
  Propertiesobject. | 
| static void | main(String[] args)Use this method ot generate a test MD5 of a provide  Filespecified
 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. | 
public MD5GetHandler()
              throws InstantiationException
InstantiationExceptionpublic 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
OFSNGetHandlerretrieveChunk in interface OFSNGetHandlerfilepath - 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)
OFSNGetHandlersizeOf in interface OFSNGetHandlerfilepath - The remote file in question.Copyright © 1999–2017 Apache OODT. All rights reserved.