List of utility methods to do File to OutputStream
FileOutputStream | openOutputStream(String filePath) open Output Stream return openOutputStream(new File(filePath), false); |
OutputStream | openOutputStream(String outputName) open Output Stream if (outputName == null || outputName.equals("-")) { return System.out; } else if (outputName.endsWith(".gz")) { return new GZIPOutputStream(new FileOutputStream(outputName)); } else { return new BufferedOutputStream(new FileOutputStream(outputName)); |
OutputStream | outStream(final File aFile) out Stream return new BufferedOutputStream(new FileOutputStream(aFile, true)); |
DataOutputStream | outStream(String file) out Stream return outStream(new File(file)); |