org.openscience.cdk.io.formats
Interface IChemFormatMatcher

All Superinterfaces:
IChemFormat, IResourceFormat
All Known Implementing Classes:
ABINITFormat, Aces2Format, ADFFormat, CACheFormat, CDKOWLFormat, CIFFormat, CMLFormat, CrystClustFormat, CTXFormat, DaltonFormat, GamessFormat, Gaussian03Format, Gaussian90Format, Gaussian92Format, Gaussian94Format, Gaussian95Format, Gaussian98Format, GhemicalMMFormat, GhemicalSPMFormat, HINFormat, INChIFormat, INChIPlainTextFormat, JaguarFormat, MDLFormat, MDLRXNFormat, MDLRXNV3000Format, MDLV2000Format, MDLV3000Format, Mol2Format, MOPAC2002Format, MOPAC7Format, MOPAC93Format, MOPAC97Format, MoSSOutputFormat, NWChemFormat, PDBFormat, PMPFormat, PubChemASNFormat, PubChemCompoundsXMLFormat, PubChemCompoundXMLFormat, PubChemSubstancesASNFormat, PubChemSubstancesXMLFormat, PubChemSubstanceXMLFormat, QChemFormat, RGroupQueryFormat, SDFFormat, ShelXFormat, SpartanFormat, VASPFormat, ZMatrixFormat

public interface IChemFormatMatcher
extends IChemFormat

This interface is used for classes that are able to match a certain chemical file format. For example: Chemical Markup Language, PDB etc.

Author:
Egon Willighagen
Created on:
2004-10-25
Belongs to CDK module:
ioformats
Source code:
HEAD

Method Summary
 boolean matches(int lineNumber, String line)
          Method that checks whether the given line is part of the format read by this reader.
 
Methods inherited from interface org.openscience.cdk.io.formats.IChemFormat
getReaderClassName, getRequiredDataFeatures, getSupportedDataFeatures, getWriterClassName
 
Methods inherited from interface org.openscience.cdk.io.formats.IResourceFormat
getFormatName, getMIMEType, getNameExtensions, getPreferredNameExtension, isXMLBased
 

Method Detail

matches

boolean matches(int lineNumber,
                String line)
Method that checks whether the given line is part of the format read by this reader.

Parameters:
lineNumber - number of the line
line - line in the file being checked
Returns:
true if the line is of a file format read by this reader