org.apache.oodt.commons.activity
Class WriterStorage

java.lang.Object
  extended by org.apache.oodt.commons.activity.WriterStorage
All Implemented Interfaces:
Storage
Direct Known Subclasses:
StandardOutputStorage

public abstract class WriterStorage
extends Object
implements Storage

Storage that sends activity reports to a Writer as plain text.

Version:
$Revision: 1.1 $
Author:
Kelly

Field Summary
protected  PrintWriter writer
          Where to send the text.
 
Constructor Summary
protected WriterStorage(Writer writer)
          Creates a new WriterStorage instance.
 
Method Summary
 void store(String id, List incidents)
          Write a line of text for a stored activity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

protected PrintWriter writer
Where to send the text.

Constructor Detail

WriterStorage

protected WriterStorage(Writer writer)
Creates a new WriterStorage instance.

Parameters:
writer - Where to write activity reports.
Method Detail

store

public void store(String id,
                  List incidents)
Write a line of text for a stored activity. The format is activityID[incident,incident...].

Specified by:
store in interface Storage
Parameters:
id - a String value.
incidents - a List value.


Copyright © 1999-2013
Apache OODT. All Rights Reserved.