307308309310311312313314
private Resource readFile(File fh) throws StorageException { if (!fh.exists()) { return null; } Resource res = new FileResource(fh); return res; }
374375376377378379380
private Resource readFile(File fh) throws StorageException { if (!fh.exists()) { return null; } return new FileResource(fh); }
477478479480481482483
159160161162163164165166167168169
new FileBlobStore(temp.getAbsolutePath()) { @Override public boolean get(TileObject stObj) throws StorageException { stObj.setBlob(new FileResource(imageTile)); stObj.setCreated((new Date()).getTime()); stObj.setBlobSize(1000); return true; }
344345346347348349350351
private Resource readFile(File fh) { if (!fh.exists()) { return null; } Resource res = new FileResource(fh); return res; }