@TestClass(value="org.openscience.cdk.io.formats.MoSSOutputFormatTest") public class MoSSOutputFormat extends Object implements IChemFormatMatcher
Modifier and Type | Method and 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)
Method that checks whether the given line is part of the format
read by this reader.
|
@TestMethod(value="testResourceFormatSet") public static IResourceFormat getInstance()
@TestMethod(value="testGetFormatName") public String getFormatName()
getFormatName
in interface IResourceFormat
@TestMethod(value="testGetMIMEType") public String getMIMEType()
getMIMEType
in interface IResourceFormat
@TestMethod(value="testGetPreferredNameExtension") public String getPreferredNameExtension()
getPreferredNameExtension
in interface IResourceFormat
@TestMethod(value="testGetNameExtensions") public String[] getNameExtensions()
getNameExtensions
in interface IResourceFormat
@TestMethod(value="testGetReaderClassName") public String getReaderClassName()
getReaderClassName
in interface IChemFormat
@TestMethod(value="testGetWriterClassName") public String getWriterClassName()
getWriterClassName
in interface IChemFormat
public boolean matches(int lineNumber, String line)
matches
in interface IChemFormatMatcher
lineNumber
- number of the lineline
- line in the file being checked@TestMethod(value="testIsXMLBased") public boolean isXMLBased()
isXMLBased
in interface IResourceFormat
@TestMethod(value="testGetSupportedDataFeatures") public int getSupportedDataFeatures()
getSupportedDataFeatures
in interface IChemFormat
DataFeatures
@TestMethod(value="testGetRequiredDataFeatures") public int getRequiredDataFeatures()
getRequiredDataFeatures
in interface IChemFormat
DataFeatures