MCPcopy Create free account
hub / github.com/apache/pig / writeToFile

Method writeToFile

test/org/apache/pig/test/Util.java:347–356  ·  view source on GitHub ↗
(File f, String[] inputData)

Source from the content-addressed store, hash-verified

345 }
346
347 public static void writeToFile(File f, String[] inputData) throws
348 IOException {
349 PrintWriter pw = new PrintWriter(new OutputStreamWriter(new
350 FileOutputStream(f), "UTF-8"));
351 for (int i=0; i<inputData.length; i++){
352 pw.print(inputData[i]);
353 pw.print("\n");
354 }
355 pw.close();
356 }
357
358 /**
359 * Helper to create a dfs file on the Minicluster DFS with given

Callers 5

createInputFileMethod · 0.95
createLocalInputFileMethod · 0.95
testInputShipSpecsMethod · 0.95

Calls 2

closeMethod · 0.65
printMethod · 0.45

Tested by

no test coverage detected