/** * Calls {@link #store(DataOutput)} after converting * {@link OutputStream} to {@link DataOutput} */ public boolean store(OutputStream output) throws IOException { DataOutput dataOut = new OutputStreamDataOutput(output); try { return store(dataOut); } finally { IOUtils.close(output); } }
if (storeDir != null) { File target = new File(storeDir, factory.storeFileName()); if(!lookup.store(new FileOutputStream(target))) { if (sourceLocation == null) { assert reader != null && field != null;
if (storeDir != null) { File target = new File(storeDir, factory.storeFileName()); if(!lookup.store(new FileOutputStream(target))) { if (sourceLocation == null) { assert reader != null && field != null;