szte.io
Class CMCDataHolder

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector<Document>
              extended by szte.io.CMCDataHolder
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Document>, java.util.Collection<Document>, java.util.List<Document>, java.util.RandomAccess, DocumentSet

public class CMCDataHolder
extends java.util.Vector<Document>
implements DocumentSet

The reader and container class for the CMC XML format. To obtain a corpus please visit: http://www.computationalmedicine.org/catalog

See Also:
Serialized Form

Constructor Summary
CMCDataHolder()
           
 
Method Summary
 void readDocumentSet(java.lang.String file)
          reads (and internally store) a corpus
 void readFileToSet(java.util.Set<java.lang.String> set, java.lang.String fn)
           
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

CMCDataHolder

public CMCDataHolder()
Method Detail

readFileToSet

public void readFileToSet(java.util.Set<java.lang.String> set,
                          java.lang.String fn)
                   throws java.io.IOException
Throws:
java.io.IOException

readDocumentSet

public void readDocumentSet(java.lang.String file)
Description copied from interface: DocumentSet
reads (and internally store) a corpus

Specified by:
readDocumentSet in interface DocumentSet
Parameters:
file - encodes the path for a corpus