Example #1
0
 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();
   }
 }
Example #2
0
 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();
   }
 }