ThinkUI Data Generator 1.0.2 API

thinkui.db.io
Class AbstractStringBufferDataObjectWriter

java.lang.Object
  extended bythinkui.db.io.AbstractDataObjectWriter
      extended bythinkui.db.io.AbstractStringBufferDataObjectWriter
All Implemented Interfaces:
DataObjectWriter
Direct Known Subclasses:
CSVDataObjectWriter, EchoDataObjectWriter

public abstract class AbstractStringBufferDataObjectWriter
extends AbstractDataObjectWriter

Extends AbstractDataObjectWriter to implement a base class for writing strings using the StringBuffer class.


Constructor Summary
AbstractStringBufferDataObjectWriter()
          AbstractStringBufferDataObjectWriter constructor.
 
Method Summary
 int getCount()
           
 void write(DataClass dataClass)
          Write the given data class.
 DataObject write(DataObject dataObject)
          Write the given data object and return it (unmodified).
 
Methods inherited from class thinkui.db.io.AbstractDataObjectWriter
close, commit, getFormatFactory, getOutputStream, getWriter, init, isWriteHeader, isWriteUppercase, rollback, setFormatFactory, setOutputStream, setWriteHeader, setWriter, setWriteUppercase
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractStringBufferDataObjectWriter

public AbstractStringBufferDataObjectWriter()
AbstractStringBufferDataObjectWriter constructor.

Method Detail

getCount

public final int getCount()
Returns:
the number of objects that has been written.

write

public final void write(DataClass dataClass)
                 throws java.lang.Exception
Write the given data class.

Throws:
java.lang.Exception

write

public final DataObject write(DataObject dataObject)
                       throws java.lang.Exception
Write the given data object and return it (unmodified).

Returns:
the given data object unmodified.
Throws:
java.lang.Exception

ThinkUI Data Generator 1.0.2 API

Copyright © 2007-2009. ThinkUI Software Inc. All rights reserved.