Logo Search packages:      
Sourcecode: cdk version File versions  Download package

boolean org::openscience::cdk::io::formats::INChIPlainTextFormat::matches ( int  lineNumber,
String  line 
) [inline]

Method that checks wether 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

Implements org::openscience::cdk::io::formats::IChemFormatMatcher.

Definition at line 62 of file INChIPlainTextFormat.java.

                                                        {
        if (line.startsWith("INChI=")) {
            return true;
        }
        return false;
    }


Generated by  Doxygen 1.6.0   Back to index