Package com.axelor.data.export
Class ExportWriter
java.lang.Object
com.axelor.data.export.ExportWriter
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Direct Known Subclasses:
CsvWriter,ExcelWriter
The
ExportWriter is an abstraction to write exported data.-
Constructor Details
-
ExportWriter
Create a newExportWriterwith the given path.- Parameters:
path- the target path.- Throws:
IOException
-
-
Method Details
-
getPath
-
isClosed
public boolean isClosed() -
ensureOpen
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Throws:
IOException
-
write
Write the given values.- Parameters:
name- the data-set namevalues- the record values- Throws:
IOException
-
doWrite
- Throws:
IOException
-
doClose
- Throws:
IOException
-
doFlush
- Throws:
IOException
-