ambit2.core.io
Class DelimitedFileFormat
java.lang.Object
ambit2.core.io.DelimitedFileFormat
- All Implemented Interfaces:
- org.openscience.cdk.io.formats.IChemFormat, org.openscience.cdk.io.formats.IChemFormatMatcher, org.openscience.cdk.io.formats.IResourceFormat
public class DelimitedFileFormat
- extends java.lang.Object
- implements org.openscience.cdk.io.formats.IChemFormatMatcher
File format for delimited files
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fieldDelimiter
protected java.lang.String fieldDelimiter
textDelimiter
protected char textDelimiter
DelimitedFileFormat
public DelimitedFileFormat()
- Default field delimiter ','
Default text delimiter '"'
DelimitedFileFormat
public DelimitedFileFormat(java.lang.String fieldDelimiter,
char textDelimiter)
- Parameters:
fieldDelimiter
- , default ','textDelimiter
- , default '"'
matches
public boolean matches(int lineNumber,
java.lang.String line)
- Specified by:
matches
in interface org.openscience.cdk.io.formats.IChemFormatMatcher
getFormatName
public java.lang.String getFormatName()
- Specified by:
getFormatName
in interface org.openscience.cdk.io.formats.IResourceFormat
getReaderClassName
public java.lang.String getReaderClassName()
- Specified by:
getReaderClassName
in interface org.openscience.cdk.io.formats.IChemFormat
getWriterClassName
public java.lang.String getWriterClassName()
- Specified by:
getWriterClassName
in interface org.openscience.cdk.io.formats.IChemFormat
getFieldDelimiter
public java.lang.String getFieldDelimiter()
- Returns:
- Returns the fieldDelimiter.
getTextDelimiter
public char getTextDelimiter()
- Returns:
- Returns the textDelimiter.
getPreferredNameExtension
public java.lang.String getPreferredNameExtension()
- Specified by:
getPreferredNameExtension
in interface org.openscience.cdk.io.formats.IResourceFormat
getSupportedDataFeatures
public int getSupportedDataFeatures()
- Specified by:
getSupportedDataFeatures
in interface org.openscience.cdk.io.formats.IChemFormat
isXMLBased
public boolean isXMLBased()
- Specified by:
isXMLBased
in interface org.openscience.cdk.io.formats.IResourceFormat
getMIMEType
public java.lang.String getMIMEType()
- Specified by:
getMIMEType
in interface org.openscience.cdk.io.formats.IResourceFormat
getNameExtensions
public java.lang.String[] getNameExtensions()
- Specified by:
getNameExtensions
in interface org.openscience.cdk.io.formats.IResourceFormat
getRequiredDataFeatures
public int getRequiredDataFeatures()
- Specified by:
getRequiredDataFeatures
in interface org.openscience.cdk.io.formats.IChemFormat