3 //import java.util.Vector;
5 public class OutputCollector {
10 public OutputCollector() {
11 this.keys = new Vector();
12 this.values = new Vector();
15 public void emit(String key, String value) {
16 this.keys.addElement(key);
17 this.values.addElement(value);
21 return this.keys.size();
24 public String getKey(int i) {
25 return (String)this.keys.elementAt(i);
28 public String getValue(int i) {
29 return (String)this.values.elementAt(i);