Package org.openscience.cdk.io.formats
Class SDFFormat
- java.lang.Object
-
- org.openscience.cdk.io.formats.AbstractResourceFormat
-
- org.openscience.cdk.io.formats.SDFFormat
-
- All Implemented Interfaces:
IChemFormat,IChemFormatMatcher,IResourceFormat
public class SDFFormat extends AbstractResourceFormat implements IChemFormatMatcher
See here.- Source code:
- main
- Belongs to CDK module:
- ioformats
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openscience.cdk.io.formats.IChemFormatMatcher
IChemFormatMatcher.MatchResult
-
-
Field Summary
-
Fields inherited from interface org.openscience.cdk.io.formats.IChemFormatMatcher
NO_MATCH
-
-
Constructor Summary
Constructors Constructor Description SDFFormat()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFormatName()static IResourceFormatgetInstance()StringgetMIMEType()String[]getNameExtensions()StringgetPreferredNameExtension()StringgetReaderClassName()intgetRequiredDataFeatures()intgetSupportedDataFeatures()StringgetWriterClassName()booleanisXMLBased()booleanmatches(int lineNumber, String line)IChemFormatMatcher.MatchResultmatches(List<String> lines)Simple implementation, runs the lines one-by-one throughmatches(int, String)and returns true if any line matches.-
Methods inherited from class org.openscience.cdk.io.formats.AbstractResourceFormat
equals, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openscience.cdk.io.formats.IChemFormatMatcher
matches
-
-
-
-
Method Detail
-
getInstance
public static IResourceFormat getInstance()
-
getFormatName
public String getFormatName()
- Specified by:
getFormatNamein interfaceIResourceFormat
-
getMIMEType
public String getMIMEType()
- Specified by:
getMIMETypein interfaceIResourceFormat
-
getPreferredNameExtension
public String getPreferredNameExtension()
- Specified by:
getPreferredNameExtensionin interfaceIResourceFormat
-
getNameExtensions
public String[] getNameExtensions()
- Specified by:
getNameExtensionsin interfaceIResourceFormat
-
getReaderClassName
public String getReaderClassName()
- Specified by:
getReaderClassNamein interfaceIChemFormat
-
getWriterClassName
public String getWriterClassName()
- Specified by:
getWriterClassNamein interfaceIChemFormat
-
matches
public boolean matches(int lineNumber, String line)
-
isXMLBased
public boolean isXMLBased()
- Specified by:
isXMLBasedin interfaceIResourceFormat
-
getSupportedDataFeatures
public int getSupportedDataFeatures()
- Specified by:
getSupportedDataFeaturesin interfaceIChemFormat
-
getRequiredDataFeatures
public int getRequiredDataFeatures()
- Specified by:
getRequiredDataFeaturesin interfaceIChemFormat
-
matches
public final IChemFormatMatcher.MatchResult matches(List<String> lines)
Simple implementation, runs the lines one-by-one throughmatches(int, String)and returns true if any line matches.- Specified by:
matchesin interfaceIChemFormatMatcher- Parameters:
lines- lines of the input to be checked- Returns:
- runs the lines
-
-