org.datamixer.io
Class DMWriter

java.lang.Object
  extended byorg.datamixer.io.DMWriter
Direct Known Subclasses:
DMFileWriter, DMStreamWriter

public abstract class DMWriter
extends java.lang.Object


Field Summary
protected  java.lang.String id_
          id
protected  org.apache.log4j.Logger logger_
          logger
 
Constructor Summary
DMWriter()
           
 
Method Summary
 void close()
           
protected abstract  java.io.BufferedWriter doGetWriter()
           
 void flush()
           
 java.lang.String getId()
          Returns the id.
 java.io.BufferedWriter getWriter()
           
 void setId(java.lang.String id)
          Sets the id.
 void write(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id_

protected java.lang.String id_
id


logger_

protected org.apache.log4j.Logger logger_
logger

Constructor Detail

DMWriter

public DMWriter()
Method Detail

getId

public java.lang.String getId()
Returns the id.


setId

public void setId(java.lang.String id)
Sets the id.


getWriter

public java.io.BufferedWriter getWriter()
                                 throws java.io.IOException
Throws:
java.io.IOException

doGetWriter

protected abstract java.io.BufferedWriter doGetWriter()
                                               throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.lang.String s)
           throws DatamixerException
Throws:
DatamixerException

flush

public void flush()
           throws DatamixerException
Throws:
DatamixerException

close

public void close()
           throws DatamixerException
Throws:
DatamixerException


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