jklustor-all-api-0.0.7-20140619012755 (ChemAxon)


com.chemaxon.descriptors.db
Class MDTableReader<D extends Descriptor>

Object
  extended by com.chemaxon.descriptors.db.MDTableReader<D>
Direct Known Subclasses:
CfpTableReader, EcfpTableReader, PfTableReader

@Beta
public abstract class MDTableReader<D extends Descriptor>
extends Object

Deserialize fingerprint from MDTable (JChem).

Please note that this interface is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.

Author:
Laszlo Antal

Constructor Summary
MDTableReader()
           
 
Method Summary
static MDTableReader<? extends Descriptor> createNewReader(String xmlConfig)
          Create an MDTableReader from the xml configuration string.
abstract  DescriptorComparator<D> getDefaultComparator()
          Gets default comparator.
abstract  String getXmlConfig()
          Gets configuration string.
abstract  D read(byte[] serialized)
          Generates a descriptor from a byte array.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDTableReader

public MDTableReader()
Method Detail

read

public abstract D read(byte[] serialized)
Generates a descriptor from a byte array.

Parameters:
serialized -
Returns:
a bare descriptor form

getXmlConfig

public abstract String getXmlConfig()
Gets configuration string.

Returns:
xml config

getDefaultComparator

public abstract DescriptorComparator<D> getDefaultComparator()
Gets default comparator.

Returns:
default comparator object

createNewReader

public static MDTableReader<? extends Descriptor> createNewReader(String xmlConfig)
Create an MDTableReader from the xml configuration string.

Parameters:
xmlConfig - xml config
Returns:
an MDTableReader implementation
Throws:
IllegalArgumentException - invalid xml string

jklustor-all-api-0.0.7-20140619012755 (ChemAxon)