public interface FileMakingRowWriter
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 |
writeRow(List<String> valueList)
Write the row as value list to token file.
|
void |
writeRow(Map<String,String> columnValueMap)
Write the row as column-key value map to token file.
|
void writeRow(List<String> valueList) throws IOException
valueList - The list of value for row. (NotNull, NotEmpty)IOException - When the file writing failed.void writeRow(Map<String,String> columnValueMap) throws IOException
columnValueMap - The map of column-key value for row. (NotNull, NotEmpty)IOException - When the file writing failed.Copyright © 2014–2015 The DBFlute Project. All rights reserved.