Project

General

Profile

1
/**
2
 *  '$RCSfile$'
3
 *  Copyright: 2000 Regents of the University of California and the
4
 *              National Center for Ecological Analysis and Synthesis
5
 *    Purpose: To test the ReplicationServerList class by JUnit
6
 *    Authors: Jing Tao
7
 *
8
 *   '$Author: daigle $'
9
 *     '$Date: 2009-02-23 11:29:07 -0800 (Mon, 23 Feb 2009) $'
10
 * '$Revision: 4816 $'
11
 *
12
 * This program is free software; you can redistribute it and/or modify
13
 * it under the terms of the GNU General Public License as published by
14
 * the Free Software Foundation; either version 2 of the License, or
15
 * (at your option) any later version.
16
 *
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU General Public License for more details.
21
 *
22
 * You should have received a copy of the GNU General Public License
23
 * along with this program; if not, write to the Free Software
24
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25
 */
26

    
27
package edu.ucsb.nceas.metacattest;
28

    
29
import edu.ucsb.nceas.metacat.*;
30
import edu.ucsb.nceas.metacat.client.Metacat;
31
import edu.ucsb.nceas.metacat.client.MetacatFactory;
32
import edu.ucsb.nceas.metacat.service.PropertyService;
33
import edu.ucsb.nceas.metacat.util.MetacatUtil;
34
import edu.ucsb.nceas.utilities.IOUtil;
35
import edu.ucsb.nceas.utilities.XMLUtilities;
36
//import edu.ucsb.nceas.morpho.framework.*;
37
import junit.framework.Test;
38
import junit.framework.TestCase;
39
import junit.framework.TestResult;
40
import junit.framework.TestSuite;
41
import org.apache.commons.logging.Log;
42
import org.apache.commons.logging.LogFactory;
43
import org.w3c.dom.Document;
44
import org.w3c.dom.Node;
45
import org.w3c.dom.NodeList;
46

    
47
import java.io.*;
48
import java.net.*;
49
import java.text.SimpleDateFormat;
50
import java.util.*;
51

    
52

    
53
/**
54
 * This class is used to change the data file location for IPCC eml documents.
55
 * Currently IPCC eml documents point data file ti SRB server. However, the srb 
56
 * earthgrid is not very stable. We decided to change the online URL from srb to knb.
57
 * So this class will handle this case.
58
 * Before running this program, it needs:
59
 * 1. Downloaded data files from SRB
60
 * 2. A list of IPCC docid(with revision number) text file. If the text file is not available, it need
61
 * a metacat query file to search metacat to get the doicd list.
62
 * What the class will do:
63
 * 1. It will read the eml from Metacat.
64
 * 2. Get online URL information from eml document by DOM parser.
65
 * 3. Base on the URL information, this program will find the data file in
66
 *     the direcotry which contains the srb data file.
67
* 4. It will generate docid for the data file.
68
* 5. Upload the download srb data file to Metacat with assigned docid.
69
* 6. Modify the eml document with the new URL information (pointing to
70
 *     knb) and new version number in eml
71
 * 7. Update it to a new version in Metacat.
72
 * 8 . Go through above 7 steps for every eml document in the list.
73
 * 
74
 */ 
75
public class UploadIPCCDataTest extends TestCase
76
{
77
  
78
	 
79
	  /* Initialize properties*/
80
	  static
81
	  {
82
		  try
83
		  {
84
			  PropertyService.getInstance();
85
		  }
86
		  catch(Exception e)
87
		  {
88
			  System.err.println("Exception in initialize option in MetacatServletNetTest "+e.getMessage());
89
		  }
90
	  }
91
	  
92
	  /**Constants*/
93
	  private static String SRBDATAFILEDIR = "/home/tao/data-file/IPCC"; // Dir for storing srb data file
94
	  private static String DOCLISTFILE       = "docidList"; // File name which stores IPCC document id
95
	  private static String METACATURL      = "http://chico.dyndns.org/knb/metacat";
96
	  private static String USERNAME          = "uid=dpennington,o=LTER,dc=ecoinformatics,dc=org";
97
	  private static String PASSWORD           = "password";
98
	  private static String TABLEONLINEURL= "/eml:eml/dataset/dataTable/physical/distribution/online/url";
99
	  private static String SPATIALONLINEURL = "/eml:eml/dataset/spatialRaster/physical/distribution/online/url";
100
	  private static String PACKAGEID               ="/eml:eml/@packageId";
101
	  private static String SRB                           = "srb://";
102
	  private static String KNB                           = "ecogrid://knb/";
103
	  private static String DATAIDPREFIX          = "IPCC";
104
	  private static String DOT                           = ".";
105
	  private static String SUCCESSLOG             = "update.log";
106
	  private static String ERRORLOG                = "error.log";
107
	  private static String CURRENT_CORRECTFILENAME = "correct_filename.csv";
108
	  private File log = new File(SUCCESSLOG);
109
	  private File error = new File (ERRORLOG);
110
	  
111
	  
112
	  /**
113
	   * Constructor to build the test
114
	   *
115
	   * @param name the name of the test method
116
	   */
117
	  public UploadIPCCDataTest(String name)
118
	  {
119
	    super(name);
120
	    
121
	  }
122

    
123

    
124
	  /**
125
	   * Create a suite of tests to be run together
126
	   */
127
	  public static Test suite()
128
	  {
129
		   TestSuite suite = new TestSuite();
130
		   //suite.addTest(new UploadIPCCDataTest("modifyEMLDocsWithCorrectDataFileName"));
131
		   //suite.addTest(new UploadIPCCDataTest("modifyEMLDocsWithIncorrectDataFileName"));
132
		    return suite;
133
	 }
134
	  
135
	  /**
136
	   * Modify EML Docs' data url online from SRB to ecogrid.
137
	   *Those eml docs pointe valide srb file names.
138
	   */
139
	  public void modifyEMLDocsWithCorrectDataFileName()
140
	  {
141
		  boolean originalDataFileIncorrect = false;
142
		  updateEML(originalDataFileIncorrect);
143
	  }
144
	  /**
145
	   * Modify EML Docs' data url online from SRB to ecogrid.
146
	   *Those eml docs pointe invalide srb file names.
147
	   */
148
	  public void modifyEMLDocsWithIncorrectDataFileName()
149
	  {
150
		  boolean originalDataFileIncorrect = true;
151
		  updateEML(originalDataFileIncorrect);
152
	  }
153
	  /*
154
	   * Upload the data file to Metacat and modify the eml documents
155
	   * @return
156
	   * @throws Exception
157
	   */
158
	  private void updateEML(boolean originalDataFileIncorrect)
159
	  {
160
		  
161
		      // Get eml document first
162
			  Vector list = getDocumentList();
163
			  //If list is not empty, goes through every document by handleSingleEML method -
164
			  //1. It will read the eml from Metacat.
165
			  // 2. Get online URL information from eml document by DOM parser.
166
			  // 3. Base on the URL information, this program will find the data file in
167
			  // the direcotry which contains the srb data file.
168
			  // 4. It will generate docid for the data file
169
              // 5. At last upload the download srb data file to Metacat with assigned docid.
170
			  // 6. Modify the eml document with the new URL information (pointing to
171
			  // knb) and new version number in eml.
172
			  // 7.Update it to a new version in Metacat.
173
			  
174
              if (list != null && !list.isEmpty())
175
              {
176
            	   int size = list.size();
177
            	   for (int i=0; i<size; i++)
178
            	   {
179
            		   String docid = null;
180
            		   try
181
            		   {
182
            			   docid = (String)list.elementAt(i);
183
            			   String dataId = handleSingleEML(docid, originalDataFileIncorrect);
184
            			   String message = "Successfully update eml "+docid + " with data id "+dataId;
185
            			   writeLog(log, message);
186
            		   }
187
            		   catch(Exception e)
188
            		   {
189
            			   System.err.println("Failed to handle eml document "+docid + " since "+
190
            					   e.getMessage());
191
            			   String message = "failed to update eml "+docid + "\n "+e.getMessage();
192
            			   writeLog(error, message);
193
            		   }
194
            	   }
195
              }
196
              else
197
              {
198
            	  System.err.println("There is no EML document to handle");
199
              }
200
		
201
	  }
202
	  
203
	  /*
204
	   * Does actually job to upload data file and modify eml document for a given id.
205
	   * Here are its tasks:
206
	   * 1. It will read the eml from Metacat.
207
	   * 2. Get online URL information from eml document by DOM parser.
208
	   * 3. Base on the URL information, this program will find the data file in
209
	   *     the direcotry which contains the srb data file.
210
	   * 4. It will generate docid for the data file.
211
	   * 5. Upload the download srb data file to Metacat with assigned docid.
212
	   * 6. Modify the eml document with the new URL information (pointing to
213
	   *     knb) and new version number in eml
214
	   * 7. Update it to a new version in Metacat.
215
	   * 
216
	   */	 
217
	  private String handleSingleEML(String docid,boolean originalDataFileIncorrect) throws Exception
218
	  {
219
		  Metacat metacat = MetacatFactory.createMetacatConnection(METACATURL);
220
		  // login metacat 
221
		  String response = metacat.login(USERNAME, PASSWORD);
222
		  if (response.indexOf("<login>") == -1)
223
		  {
224
			  throw new Exception("login failed "+response);
225
		  }
226
		  // 1. Reads eml document from metacat
227
		  Reader r = metacat.read(docid);
228
          Document DOMdoc = XMLUtilities.getXMLReaderAsDOMDocument(r);
229
          Node rootNode = (Node)DOMdoc.getDocumentElement();
230
          
231
          //2.  Gets online url information. If onlineUrl is not SRB, through an exception
232
          String onlineUrl = getOnLineURL(rootNode);
233
          //System.out.println("=================The url is "+onlineUrl);
234
          
235
          //3. Find the srb data file 
236
          String dataFileName = getDataFileNameFromURL(onlineUrl);
237
          //System.out.println("the data fileName in eml "+dataFileName);
238
          //If the dataFileName in original eml is wrong, we need to look up the
239
          // the correct name first
240
          if (originalDataFileIncorrect)
241
          {
242
        	  Hashtable correctName = getCurrent_CorrectFileNamesPair();
243
        	  dataFileName =(String) correctName.get(dataFileName);
244
          }
245
          //System.out.println("=================The data file is "+dataFileName);
246
          File dataFile = null;
247
          dataFile = new File(SRBDATAFILEDIR,dataFileName);
248
           if (!dataFile.exists())
249
           {
250
        	  throw new Exception("Couldn't find the data file in srb data directory "+dataFile);
251
          }
252
           
253
          //4. Generate docid for data file
254
          String dataId = generateId();
255
          //System.out.println("=======The docid for data file will be "+dataId);
256
          
257
          //5. upload data file to Metacat
258
          response = metacat.upload(dataId, dataFile);
259
          if (response.indexOf("<success>") == -1)
260
          {
261
        	  throw new Exception("Couldn't upload data file "+dataFileName +
262
        			  " with id "+dataId+ " into Metacat since "+response);
263
          }
264
          
265
          //6. Updates eml online url and package id in DOM
266
          String newId = updateEMLDoc(rootNode, docid, dataId);
267
          //System.out.println("The new docid is ========"+newId);
268
          
269
          //Put EML DOM with the new packagId and oneline url into a StringWriter and store it to String
270
          StringWriter stringWriter = new StringWriter();
271
          PrintWriter printWriter = new PrintWriter(stringWriter);
272
		  XMLUtilities.print(rootNode, printWriter);
273
		  String xml = stringWriter.toString();
274
		  //System.out.println("the xml is "+xml);		  
275
		  
276
		  //7.insert new (update) EML document into Metacat
277
          StringReader xmlReader = new StringReader(xml);
278
          response = metacat.update(newId, xmlReader, null);
279
          if (response.indexOf("<success>") == -1)
280
          {
281
        	  throw new Exception("Upload data file "+dataFileName +
282
        			  " with id "+dataId+ " successfully but update eml "+newId +" failed since "+ response);
283
          }
284
          metacat.logout();
285
          return dataId;
286
	  }
287
	  
288
	  /*
289
	   * Gets onlineUrl value from a given eml DOM document.
290
	   * The online url xpath can be "/eml/dataset/dataTable/physical/distribution/online/url"
291
	   * or "/eml/dataset/spatialRaster/physical/distribution/online/url"
292
	   */
293
	  private String getOnLineURL(Node root) throws Exception
294
	  {
295
		  String url = null;
296
		  if (root == null)
297
		  {
298
			  throw new Exception("root node for this EML is null and couldn't get online url from it");
299
		  }
300
		  Node urlNode = XMLUtilities.getTextNodeWithXPath(root, TABLEONLINEURL);
301
		  // in table online url does exist, we will try to use another xpath - SPATIALONLEURL
302
		  if (urlNode == null)
303
		  {
304
			  urlNode = XMLUtilities.getTextNodeWithXPath(root, SPATIALONLINEURL);
305
		  }
306
		  // Couldn't find any matche element, throw exception
307
		  if(urlNode == null)
308
		  {
309
			  throw new Exception("Couldn't find any onlie url information in eml document");
310
		  }
311
		  //Gets text node value and if the url doesn't contain "srb;//", it will throw a exception
312
		 url = urlNode.getNodeValue();
313
		 if (url == null || url.indexOf(SRB)== -1)
314
		 {
315
			 throw new Exception("The online url doesn't have srb protocol and we don't need to handle");
316
		 }
317
		  return url;
318
	  }
319
	  
320
	  /*
321
	   * Automatically to generate a unique id for ddata file. 
322
	   * This id will be looked like - DATAIDPREFIX.numberBaseonTime.1, e.g
323
	   * IPCC.20072321.1
324
	   */
325
	  private String generateId()
326
	  {
327
		  int version = 1;
328
		  StringBuffer docid = new StringBuffer(DATAIDPREFIX);
329
		  docid.append(DOT);
330
				     
331
		  // Create a calendar to get the date formatted properly
332
		  String[] ids = TimeZone.getAvailableIDs(-8 * 60 * 60 * 1000);
333
		  SimpleTimeZone pdt = new SimpleTimeZone(-8 * 60 * 60 * 1000, ids[0]);
334
		  pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 2*60*60*1000);
335
		  pdt.setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*60*60*1000);
336
		  Calendar calendar = new GregorianCalendar(pdt);
337
		  Date trialTime = new Date();
338
		  calendar.setTime(trialTime);
339

    
340
			int time = 0; 
341
			
342
			docid.append(calendar.get(Calendar.YEAR));
343
			
344
			time = calendar.get(Calendar.DAY_OF_YEAR);
345
			if(time < 10){
346
				docid.append("0");
347
				docid.append("0");
348
				docid.append(time);
349
			} else if(time < 100) {
350
				docid.append("0");
351
				docid.append(time);
352
			} else {
353
				docid.append(time);
354
			}
355
			
356
			time = calendar.get(Calendar.HOUR_OF_DAY);
357
			if(time < 10){
358
				docid.append("0");
359
				docid.append(time);
360
			} else {
361
				docid.append(time);
362
			}
363
			
364
			time = calendar.get(Calendar.MINUTE);
365
			if(time < 10){
366
				docid.append("0");
367
				docid.append(time);
368
			} else {
369
				docid.append(time);
370
			}
371
			
372
			time = calendar.get(Calendar.SECOND);
373
			if(time < 10){
374
				docid.append("0");
375
				docid.append(time);
376
			} else {
377
				docid.append(time);
378
			}		    
379
			 //sometimes this number is not unique, so we append a random number
380
			int random = (new Double(Math.random()*100)).intValue();
381
			docid.append(random);
382
			docid.append(DOT);
383
			docid.append(version);
384
			
385
			return docid.toString();
386
		 
387
	  }
388
	  /*
389
	   * Get data file name from online url. SRB oneline url will looks like -
390
	   * srb://seek:/home/beam.seek/IPCC_climate/Present/ccld6190.dat.
391
	   * The last part - ccld6190.dat is the file name. This method will get
392
	   * the file name from the give url
393
	   */
394
	  private String getDataFileNameFromURL(String onlineUrl) throws Exception
395
	  {
396
		  String dataFile = null;
397
		  String slash = "/";
398
		  if (onlineUrl != null)
399
		  {
400
			  int index = onlineUrl.lastIndexOf(slash);
401
			  try
402
			  {
403
			     dataFile = onlineUrl.substring(index+1);
404
			  }
405
			  catch(Exception e)
406
			  {
407
				  throw new Exception("Couldn't get data file name from the given url "+onlineUrl+
408
						  " since "+e.getMessage());
409
			  }
410
		  }
411
		  return dataFile;
412
	  }
413
	  
414
	  
415
     
416
      /*
417
       * Gets eml document list from text file. The text file format should be:
418
       * tao.1.1
419
       * tao.2.1
420
       */
421
	  private Vector getDocumentListFromFile() throws Exception
422
	  {
423
		  Vector docList = new Vector();
424
		  File docListFile = new File(SRBDATAFILEDIR,DOCLISTFILE);
425
		  FileReader docListFileReader= new FileReader(docListFile);
426
		  BufferedReader readDocList = new BufferedReader(docListFileReader);
427
		  // Read every line from the text file and put it into a vector
428
		  String docid = readDocList.readLine();
429
		  while (docid != null)
430
		  {
431
			  // If the docid string is not empty, put it into vector
432
			  if (!docid.trim().equals(""))
433
			  {
434
			     docList.add(docid.trim());
435
			  }
436
			  docid = readDocList.readLine();
437
		  }
438
		  return docList;
439
	  }
440
	  
441
	  /*
442
	   * Update the given eml document (in DOM). There are two places to be updated 
443
	   * The package id will be increased 1, i.e.,  from 1 to 2. The distribution online url will
444
	   * point to the new ecogrid id, i.e. , ecogrid://knb/IPCC.2007.1 
445
	   */
446
	  private String updateEMLDoc(Node root, String docid, String dataId) throws Exception 
447
	  {
448
		  // update package id
449
		  docid = getIncreasedNewDocid(docid);
450
		  XMLUtilities.addAttributeNodeToDOMTree( root, PACKAGEID, docid);
451
	      // update online url.  oneline url should either in spatialRaster or dataTable.
452
		  // First try to see if spatialRaster exist or not. If not try data table
453
		  String newUrl = KNB+dataId; //new url looks like ecogrid://knb/IPCC.2007.1
454
		  boolean isSpatialRaster = true;
455
		  boolean isDataTable = false;
456
		  Node urlNode = XMLUtilities.getTextNodeWithXPath(root, SPATIALONLINEURL);
457
		  if (urlNode == null)
458
		  {
459
			  // has no spatialRaster 
460
			 isSpatialRaster = false;		
461
		  }
462
		  else
463
		  {
464
			  // has spatialRaster
465
			  isSpatialRaster = true;		  
466
		  }
467
		  // determin if has datable or not
468
		  urlNode = XMLUtilities.getTextNodeWithXPath(root,TABLEONLINEURL);
469
		  if (urlNode != null)
470
		  {
471
				 isDataTable = true;
472
		  }
473
		  
474
		  if (isSpatialRaster && !isDataTable)
475
		  {
476
			 //only has spatialRaster and no dataTable, update spatialRaster online url
477
			  XMLUtilities.addTextNodeToDOMTree(root, SPATIALONLINEURL, newUrl);
478
		  }
479
		  else if (!isSpatialRaster && isDataTable)
480
		  {
481
              //only has dataTable and no spatialRaster, update dataTable online url
482
			  XMLUtilities.addTextNodeToDOMTree(root, TABLEONLINEURL, newUrl);
483
		  }
484
		  else
485
		  {
486
			  //some strange things happen
487
			  throw new Exception("The eml either has both dataTable or spatialRaster OR doesn't has any entity");
488
		  }
489
		  return docid;
490
	  }
491
	  
492
	  /*
493
	   * Gets new docid with increased version. Docid looks like tao.1.1. The new docid will be
494
	   * tao.1.2.
495
	   */
496
	  private String getIncreasedNewDocid(String docid) throws Exception
497
	  {
498
		  int rev = 1;
499
		  String revision = null;
500
		  String prefix = null;
501
		  String newId = null;
502
		  if (docid != null)
503
		  {
504
			  int index = docid.lastIndexOf(DOT);
505
			  try
506
			  {
507
				 // Get revsion part(1)
508
			     revision = docid.substring(index+1);
509
			     // Get prefix part (tao.1.)
510
			     prefix    = docid.substring(0, index+1);
511
			     // increase version from 1 to 2
512
			     rev = (new Integer(revision)).intValue();
513
			     rev++;
514
			     // combines the prefix tao.1. and new revision2 to get tao.1.2
515
			     newId= prefix+rev;
516
			     
517
			  }
518
			  catch(Exception e)
519
			  {
520
				  throw new Exception("Couldn't increase revsion number from the given docid "+docid+
521
						  " since "+e.getMessage());
522
				
523
			  }
524
		  }
525
		  return newId;
526
	  }
527
	  
528
	  /*
529
	   * Gets eml document list from searching Metacat
530
	   * TO-DO: This method need to be implemented
531
	   */
532
	  private Vector getDocumentListFromMetacat()
533
	  {
534
		  Vector docList = new Vector();
535
		  return docList;
536
	  }
537
	  
538
	  /*
539
	   * Get eml document list. First this method will try
540
	   * to get the eml document list form text file. If the result is empty or
541
	   * it caught an exception it will try to get eml document list from metacat.
542
	   */
543
	  private Vector getDocumentList()
544
	  {
545
		  Vector list = null;
546
		  try
547
		  {
548
			  //First, try to get eml doc list from text file
549
			  list = getDocumentListFromFile();
550
			  if (list == null || list.isEmpty())
551
			  {
552
				  throw new Exception("The eml doclist is empty in text file");
553
			  }
554
		  }
555
		  catch(Exception e)
556
		  {
557
			  System.err.println("Couldn't get eml document list from text file: "+e.getMessage());
558
			  // If an exception happened, try to get eml doc list from metacat
559
			  list = getDocumentListFromMetacat();
560
		  }
561
		  if (list != null)
562
		  {
563
			  System.out.println("the list is "+list);
564
		  }
565
		  return list;
566
	  }
567
	  
568
	  /*
569
	   * Writes error message into log file.
570
	   */
571
	  private void writeLog(File file, String message)
572
	  {
573
	    try
574
	    {
575
	      FileOutputStream fos = new FileOutputStream(file, true);
576
	      PrintWriter pw = new PrintWriter(fos);
577
	      SimpleDateFormat formatter = new SimpleDateFormat ("yy-MM-dd HH:mm:ss");
578
	      java.util.Date localtime = new java.util.Date();
579
	      String dateString = formatter.format(localtime);
580
	      dateString += " :: " + message;
581
	      //time stamp each entry
582
	      pw.println(dateString);
583
	      pw.flush();
584
	      pw.close();
585
	      fos.close();
586
	    }
587
	    catch(Exception e)
588
	    {
589
	      System.out.println("error writing to replication log from " +
590
	                         "MetacatReplication.replLog: " + e.getMessage());
591
	      //e.printStackTrace(System.out);
592
	    }
593
	 }
594
	  
595
	  /*
596
	   * Read a csv file which contains current data file name and correct data file name. 
597
	   * The format of csv file is:
598
	   * currentname1,correctname1
599
	   * currentname2,correctname2
600
	   * ........
601
	   * The return value is hash table, the current data file name is key and correct file name is
602
	   * value.
603
	   */
604
	   private Hashtable getCurrent_CorrectFileNamesPair() throws Exception
605
	   {
606
		   Hashtable fileNamesHash = new Hashtable();
607
		   File current_correctFileNames = new File(CURRENT_CORRECTFILENAME);
608
		   FileReader fileReader= new FileReader(current_correctFileNames);
609
		   BufferedReader readDocList = new BufferedReader(fileReader);
610
		   // Read every line from the text file, this line will look like:
611
		   // currentname1,correctname1
612
		   String lineString = readDocList.readLine();
613
		   while (lineString != null)
614
		   {
615
			   //Get the comma index number
616
			   int commaIndex = lineString.indexOf(",");
617
			   if (commaIndex != -1)
618
			   {
619
			      //Get the current file name part
620
			      String currentName = lineString.substring(0, commaIndex);
621
			      //Get the correct file name part
622
			      String correctName = lineString.substring(commaIndex+1, lineString.length());
623
				  if (currentName != null && correctName != null)
624
				  {
625
					  fileNamesHash.put(currentName.trim(), correctName.trim());
626
				  }
627
			  }
628
			   lineString = readDocList.readLine();
629
		   }
630
		   return fileNamesHash;
631
	   }
632
}
(19-19/20)