jpl.pds.server
Class ZipNFileHandler

java.lang.Object
  extended by jpl.pds.server.ChunkedFileHandler
      extended by jpl.pds.server.ZipNFileHandler
All Implemented Interfaces:
FileQuerier

public class ZipNFileHandler
extends ChunkedFileHandler

Handle product queries to zip PDS products. If zipName is PDS_ZIPN_SIZE then return the total size of files that PDS_ZIPN would download.

Author:
Crichton and Hughes.

Constructor Summary
ZipNFileHandler()
           
 
Method Summary
static void main(String[] argv)
          Command-line driver.
 jpl.eda.xmlquery.XMLQuery queryForFile(jpl.eda.xmlquery.XMLQuery query, File[] fileArray, String zipName)
          Query for a file.
 
Methods inherited from class jpl.pds.server.ChunkedFileHandler
addProduct, close, getFile, retrieveChunk
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipNFileHandler

public ZipNFileHandler()
Method Detail

queryForFile

public jpl.eda.xmlquery.XMLQuery queryForFile(jpl.eda.xmlquery.XMLQuery query,
                                              File[] fileArray,
                                              String zipName)
Description copied from interface: FileQuerier
Query for a file.

Parameters:
query - a XMLQuery value.
Returns:
a XMLQuery value.

main

public static void main(String[] argv)
Command-line driver.

Parameters:
argv - Command-line arguments.


Copyright © 2005-2012 Planetary Data System. All Rights Reserved.