Project

General

Profile

« Previous | Next » 

Revision 2086

Implement harvester scheduing capabilities and sending email reports to the Harvester Administrator

View differences:

HarvestDocument.java
9 9
import java.io.InputStream;
10 10
import java.io.InputStreamReader;
11 11
import java.io.IOException;
12
import java.io.PrintStream;
12 13
import java.io.StringReader;
13 14
import java.net.MalformedURLException;
14 15
import java.net.URL;
......
230 231
  
231 232
  /**
232 233
   * Print the data fields and values in this HarvestDocument object.
234
   * 
235
   * @param out   the PrintStream to write to
233 236
   */
234
  void printOutput() {
235
    System.out.println("* scope:                " + scope);
236
    System.out.println("* identifier:           " + identifier);
237
    System.out.println("* revision:             " + revision);
238
    System.out.println("* documentType:         " + documentType);
239
    System.out.println("* documentURL:          " + documentURL);
237
  void printOutput(PrintStream out) {
238
    out.println("* scope:                " + scope);
239
    out.println("* identifier:           " + identifier);
240
    out.println("* revision:             " + revision);
241
    out.println("* documentType:         " + documentType);
242
    out.println("* documentURL:          " + documentURL);
240 243
  }
241 244
 
242 245
 

Also available in: Unified diff