ambit2.core.io
Class DelimitedFileFormat

Package class diagram package DelimitedFileFormat
java.lang.Object
  extended by 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


Field Summary
protected  java.lang.String fieldDelimiter
           
protected  char textDelimiter
           
 
Constructor Summary
DelimitedFileFormat()
          Default field delimiter ',' Default text delimiter '"'
DelimitedFileFormat(java.lang.String fieldDelimiter, char textDelimiter)
           
 
Method Summary
 java.lang.String getFieldDelimiter()
           
 java.lang.String getFormatName()
           
 java.lang.String getMIMEType()
           
 java.lang.String[] getNameExtensions()
           
 java.lang.String getPreferredNameExtension()
           
 java.lang.String getReaderClassName()
           
 int getRequiredDataFeatures()
           
 int getSupportedDataFeatures()
           
 char getTextDelimiter()
           
 java.lang.String getWriterClassName()
           
 boolean isXMLBased()
           
 boolean matches(int lineNumber, java.lang.String line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldDelimiter

protected java.lang.String fieldDelimiter

textDelimiter

protected char textDelimiter
Constructor Detail

DelimitedFileFormat

public DelimitedFileFormat()
Default field delimiter ',' Default text delimiter '"'


DelimitedFileFormat

public DelimitedFileFormat(java.lang.String fieldDelimiter,
                           char textDelimiter)
Parameters:
fieldDelimiter - , default ','
textDelimiter - , default '"'
Method Detail

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