@FunctionalInterface public interface FileMakingCallback
File tsvFile = ... // output file List<String> columnNameList = ... // columns for header FileToken fileToken = new FileToken(); fileToken.make(new FileOutputStream(tsvFile), writer -> { for (Member member : ...) { // output data loop List<String> valueList = ...; // convert the member to the row resource writer.writeRow(valueList); // Yes, you write! } }, op -> op.delimitateByTab().encodeAsUTF8().headerInfo(columnNameList));
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
write(FileMakingRowWriter writer)
Make (write) token file by row writer that accepts row resources.
|
void write(FileMakingRowWriter writer) throws IOException, SQLException
writer - The row writer of file-making. (NotNull)IOException - When the IO handling fails in the row writing process.SQLException - When the SQL handling fails in the row writing process.Copyright © 2014–2015 The DBFlute Project. All rights reserved.