View Javadoc

1   /**
2    * 
3    */
4   package org.treetank.api;
5   
6   import java.io.DataInput;
7   
8   import org.treetank.exception.TTIOException;
9   
10  /**
11   * Creating MetaEntries based on the implementation and the bundle.
12   * 
13   * @author Sebastian Graf, University of Konstanz
14   * 
15   */
16  public interface IMetaEntryFactory {
17  
18      /**
19       * Create a meta-entry out of a serialized byte-representation.
20       * 
21       * @param pData
22       *            byte representation.
23       * @return the created metaEntry.
24       * @throws TTIOException
25       *             if anything weird happens
26       */
27      IMetaEntry deserializeEntry(final DataInput pData) throws TTIOException;
28  
29  }