public static void writeData(DataStoreWriter<byte[]> writer, byte[][] data, boolean close) throws IOException { for (byte[] d : data) { writer.write(d); } writer.flush(); if (close) { writer.close(); } }
public static void writeData(DataStoreWriter<String> writer, String[] data, boolean close) throws IOException { for (String line : data) { writer.write(line); } writer.flush(); if (close) { writer.close(); } }