org.datamixer.io
Class DelimitedFormat

java.lang.Object
  extended byorg.datamixer.io.DMFormatter
      extended byorg.datamixer.io.DelimitedFormat
Direct Known Subclasses:
CsvFormat, TabFormat

public class DelimitedFormat
extends DMFormatter


Field Summary
protected  java.lang.String delim_
          delimiter
 
Fields inherited from class org.datamixer.io.DMFormatter
id_, logger_, reader_, writer_
 
Constructor Summary
DelimitedFormat()
           
 
Method Summary
protected  void formatAttribute(DMAttribute attr, Value value, int index)
           
 java.lang.String getDelimiter()
           
 boolean read(DMElement element)
          Should be overridden by derived classes.
protected  void readAttributes(java.lang.String[] tokens, java.util.ArrayList attributes)
           
 void setDelimiter(java.lang.String value)
           
protected  void writeElement(int depth, DMElement element)
           
 
Methods inherited from class org.datamixer.io.DMFormatter
getId, getImpl, getReader, getWriter, setId, setImpl, setReader, setType, setWriter, write, write, writeAttribute, writeAttributes, writeElements, writeElementValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delim_

protected java.lang.String delim_
delimiter

Constructor Detail

DelimitedFormat

public DelimitedFormat()
Method Detail

read

public boolean read(DMElement element)
             throws DatamixerException
Description copied from class: DMFormatter
Should be overridden by derived classes. This method delegates to the implementation object.

Overrides:
read in class DMFormatter
Throws:
DatamixerException

readAttributes

protected void readAttributes(java.lang.String[] tokens,
                              java.util.ArrayList attributes)
                       throws DatamixerException
Throws:
DatamixerException

writeElement

protected void writeElement(int depth,
                            DMElement element)
                     throws DatamixerException
Overrides:
writeElement in class DMFormatter
Throws:
DatamixerException

formatAttribute

protected void formatAttribute(DMAttribute attr,
                               Value value,
                               int index)
                        throws DatamixerException
Overrides:
formatAttribute in class DMFormatter
Throws:
DatamixerException

getDelimiter

public java.lang.String getDelimiter()

setDelimiter

public void setDelimiter(java.lang.String value)


Copyright © 2004-2006 datamixer.org. All Rights Reserved.