1 public class OutputCollector {
6 public OutputCollector() {
7 this.keys = new Vector();
8 this.values = new Vector();
11 public void emit(String key, String value) {
12 this.keys.addElement(key);
13 this.values.addElement(value);
17 return this.keys.size();
20 public String getKey(int i) {
21 return (String)this.keys.elementAt(i);
24 public String getValue(int i) {
25 return (String)this.values.elementAt(i);