OpenAPI 1.0

com.aquafold.openapi.io
Interface AQDataWriter

All Superinterfaces:
Closeable
All Known Subinterfaces:
AQExcelWriter, AQFormattedTextWriter, AQHtmlWriter, AQTableWriter, AQTextFileWriter, AQTextStringWriter, AQXmlWriter

public interface AQDataWriter
extends Closeable

Interface represents a row-based data stream.


Method Summary
 void close()
          Closes the stream.
 void write(AQDataReader d)
          Sequentially writes all data rows present in the specified input.
 void write(AQDataRow od)
          Writes a single data row to the output stream.
 void write(AQDataSet dataSet)
          Writes all data rows in the specified data set.
 void write(Object x)
          Appends a single unformatted row which contains Object.toString() representation of the specified object.
 

Method Detail

write

void write(AQDataRow od)
           throws Exception
Writes a single data row to the output stream. The first written row determines the column structure of the resulting output. All subsequent calls must supply rows with the same column structure.

Throws:
Exception

write

void write(AQDataReader d)
           throws Exception
Sequentially writes all data rows present in the specified input.

Throws:
Exception

write

void write(AQDataSet dataSet)
           throws Exception
Writes all data rows in the specified data set.

Parameters:
dataSet -
Throws:
Exception

write

void write(Object x)
           throws Exception
Appends a single unformatted row which contains Object.toString() representation of the specified object.

Throws:
Exception

close

void close()
           throws IOException
Closes the stream.

Specified by:
close in interface Closeable
Throws:
IOException

OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.