public class PubChemASNFormat extends AbstractResourceFormat implements IChemFormatMatcher
IChemFormatMatcher.MatchResultNO_MATCH| Constructor and Description |
|---|
PubChemASNFormat() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormatName() |
static IResourceFormat |
getInstance() |
String |
getMIMEType() |
String[] |
getNameExtensions() |
String |
getPreferredNameExtension() |
String |
getReaderClassName() |
int |
getRequiredDataFeatures() |
int |
getSupportedDataFeatures() |
String |
getWriterClassName() |
boolean |
isXMLBased() |
boolean |
matches(int lineNumber,
String line)
Check whether a given line at a specified position (line number) could
belong to this format.
|
IChemFormatMatcher.MatchResult |
matches(List<String> lines)
Simple implementation, runs the lines one-by-one through
matches(int, String) and returns true if any line matches. |
equals, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitmatchespublic static IResourceFormat getInstance()
public String getFormatName()
getFormatName in interface IResourceFormatpublic String getMIMEType()
getMIMEType in interface IResourceFormatpublic String getPreferredNameExtension()
getPreferredNameExtension in interface IResourceFormatpublic String[] getNameExtensions()
getNameExtensions in interface IResourceFormatpublic String getReaderClassName()
getReaderClassName in interface IChemFormatpublic String getWriterClassName()
getWriterClassName in interface IChemFormatpublic boolean isXMLBased()
isXMLBased in interface IResourceFormatpublic int getSupportedDataFeatures()
getSupportedDataFeatures in interface IChemFormatpublic int getRequiredDataFeatures()
getRequiredDataFeatures in interface IChemFormatpublic boolean matches(int lineNumber,
String line)
lineNumber - the line number of lineline - the contents at the given lineNumberpublic final IChemFormatMatcher.MatchResult matches(List<String> lines)
matches(int, String) and returns true if any line matches.matches in interface IChemFormatMatcherlines - lines of the input to be checkedCopyright © 2017. All rights reserved.