/** * Identical to the other saveStream(), but writes to a File * object, for greater control over the file location. * Note that unlike other api methods, this will not automatically * compress or uncompress gzip files. */ public boolean saveStream(File targetFile, String sourceLocation) { return saveStream(targetFile, createInputRaw(sourceLocation)); }
/** * Identical to the other saveStream(), but writes to a File * object, for greater control over the file location. * <p/> * Note that unlike other api methods, this will not automatically * compress or uncompress gzip files. */ public boolean saveStream(File target, String source) { return saveStream(target, createInputRaw(source)); }
InputStream input = createInputRaw(filename); if ((input != null) && filename.toLowerCase().endsWith(".gz")) { try {
InputStream input = createInputRaw(filename); if (input != null) {
return createInputRaw(newLocation);