Package org.openscience.cdk.io.formats
Class Gaussian92Format
- java.lang.Object
-
- org.openscience.cdk.io.formats.AbstractResourceFormat
-
- org.openscience.cdk.io.formats.Gaussian92Format
-
- All Implemented Interfaces:
IChemFormat
,IChemFormatMatcher
,IResourceFormat
public class Gaussian92Format extends AbstractResourceFormat implements IChemFormatMatcher
- 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 Gaussian92Format()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFormatName()
Returns a one-lined format name of the format.static IResourceFormat
getInstance()
String
getMIMEType()
Returns the accepted MIME type for this format.String[]
getNameExtensions()
Returns an array of common resource name extensions.String
getPreferredNameExtension()
Returns the preferred resource name extension.String
getReaderClassName()
Returns the class name of the CDK Reader for this format.int
getRequiredDataFeatures()
Returns an integer indicating the data features that this format requires.int
getSupportedDataFeatures()
Returns an integer indicating the data features that this format supports.String
getWriterClassName()
Returns the class name of the CDK Writer for this format.boolean
isXMLBased()
Indicates if the format is an XML-based language.boolean
matches(int lineNumber, String line)
IChemFormatMatcher.MatchResult
matches(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()
Returns a one-lined format name of the format.- Specified by:
getFormatName
in interfaceIResourceFormat
-
getMIMEType
public String getMIMEType()
Returns the accepted MIME type for this format.- Specified by:
getMIMEType
in interfaceIResourceFormat
- Returns:
- null if no MIME type has been accepted on
-
getPreferredNameExtension
public String getPreferredNameExtension()
Returns the preferred resource name extension.- Specified by:
getPreferredNameExtension
in interfaceIResourceFormat
-
getNameExtensions
public String[] getNameExtensions()
Returns an array of common resource name extensions.- Specified by:
getNameExtensions
in interfaceIResourceFormat
-
getReaderClassName
public String getReaderClassName()
Returns the class name of the CDK Reader for this format.- Specified by:
getReaderClassName
in interfaceIChemFormat
- Returns:
- null if no CDK Reader is available.
-
getWriterClassName
public String getWriterClassName()
Returns the class name of the CDK Writer for this format.- Specified by:
getWriterClassName
in interfaceIChemFormat
- Returns:
- null if no CDK Writer is available.
-
matches
public boolean matches(int lineNumber, String line)
-
isXMLBased
public boolean isXMLBased()
Indicates if the format is an XML-based language.- Specified by:
isXMLBased
in interfaceIResourceFormat
- Returns:
- if the format is XML-based.
-
getSupportedDataFeatures
public int getSupportedDataFeatures()
Returns an integer indicating the data features that this format supports. The integer is composed as explained in DataFeatures. May be set to DataFeatures.NONE as default.- Specified by:
getSupportedDataFeatures
in interfaceIChemFormat
- See Also:
DataFeatures
-
getRequiredDataFeatures
public int getRequiredDataFeatures()
Returns an integer indicating the data features that this format requires. For example, the XYZ format requires 3D coordinates.- Specified by:
getRequiredDataFeatures
in interfaceIChemFormat
- See Also:
DataFeatures
-
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:
matches
in interfaceIChemFormatMatcher
- Parameters:
lines
- lines of the input to be checked- Returns:
- runs the lines
-
-