KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jac > samples > document > DocumentServer


1
2 package org.objectweb.jac.samples.document;
3
4 import org.objectweb.jac.lib.java.util.*;
5
6 public class DocumentServer {
7    Vector documents = new Vector();
8    public Vector search(String JavaDoc expression) {
9       return documents;
10    }
11    public void addDocument(Document doc) {
12       documents.add(doc);
13    }
14    public void removeDocument(Document doc) {
15       documents.remove(doc);
16    }
17
18 }
19
Popular Tags