/** * Return the inputstream from from cache, or null if not in the cache. * * @param fileName name of file. * @return stream or null. */ public InputStream getIfStored(String fileName) throws IOException { File file = getFileIfStored(fileName); return file == null ? null : new LazyFileInputStream(file); }
/** * {@inheritDoc} */ public InputStream getStream() throws DataStoreException { try { return new LazyFileInputStream(file); } catch (IOException e) { throw new DataStoreException("Error opening input stream of " + file.getAbsolutePath(), e); } }
/** * Return the inputstream from from cache, or null if not in the cache. * * @param fileName name of file. * @return stream or null. */ public InputStream getIfStored(String fileName) throws IOException { File file = getFileIfStored(fileName); return file == null ? null : new LazyFileInputStream(file); }
public InputStream getStream() throws IllegalStateException, RepositoryException { try { return new LazyFileInputStream(file); } catch (FileNotFoundException fnfe) { throw new RepositoryException("file backing binary value not found", fnfe); } }
public InputStream getStream() throws IllegalStateException, RepositoryException { try { return new LazyFileInputStream(file); } catch (FileNotFoundException fnfe) { throw new RepositoryException("file backing binary value not found", fnfe); } }
@Override public InputStream getStream() throws DataStoreException { try { return new LazyFileInputStream(file); } catch (FileNotFoundException e) { LOG.error("Error in returning stream", e); throw new DataStoreException(e); } }
@Override public InputStream getStream() throws DataStoreException { try { return new LazyFileInputStream(file); } catch (FileNotFoundException e) { LOG.error("Error in returning stream", e); throw new DataStoreException(e); } }
/** * {@inheritDoc} */ public InputStream getStream() throws DataStoreException { try { return new LazyFileInputStream(file); } catch (IOException e) { throw new DataStoreException("Error opening input stream of " + file.getAbsolutePath(), e); } }
/** * {@inheritDoc} */ public InputStream getStream() throws DataStoreException { try { return new LazyFileInputStream(file); } catch (IOException e) { throw new DataStoreException("Error opening input stream of " + file.getAbsolutePath(), e); } }
/** * Return the inputstream from from cache, or null if not in the cache. * * @param fileName name of file. * @return stream or null. */ public InputStream getIfStored(String fileName) throws IOException { File file = getFileIfStored(fileName); return file == null ? null : new LazyFileInputStream(file); }
@Override public InputStream getStream() throws DataStoreException { try { return new LazyFileInputStream(file); } catch (FileNotFoundException e) { LOG.error("Error in returning stream", e); throw new DataStoreException(e); } }
@Override public InputStream read(DataIdentifier identifier) throws DataStoreException { File file = getFile(identifier); try { return new LazyFileInputStream(file); } catch (IOException e) { throw new DataStoreException("Error opening input stream of " + file.getAbsolutePath(), e); } }
@Override public InputStream read(DataIdentifier identifier) throws DataStoreException { File file = getFile(identifier, fsPathDir); try { return new LazyFileInputStream(file); } catch (IOException e) { throw new DataStoreException("Error opening input stream of " + file.getAbsolutePath(), e); } }
@Override public InputStream read(DataIdentifier identifier) throws DataStoreException { File file = getFile(identifier, fsPathDir); try { return new LazyFileInputStream(file); } catch (IOException e) { throw new DataStoreException("Error opening input stream of " + file.getAbsolutePath(), e); } }
@Override public InputStream read(DataIdentifier identifier) throws DataStoreException { File file = getFile(identifier); try { return new LazyFileInputStream(file); } catch (IOException e) { throw new DataStoreException("Error opening input stream of " + file.getAbsolutePath(), e); } }
@Override public InputStream read(DataIdentifier identifier) throws DataStoreException { File file = getFile(identifier, fsPathDir); try { return new LazyFileInputStream(file); } catch (IOException e) { throw new DataStoreException("Error opening input stream of " + file.getAbsolutePath(), e); } }
@Override public InputStream read(DataIdentifier identifier) throws DataStoreException { File file = getFile(identifier); try { return new LazyFileInputStream(file); } catch (IOException e) { throw new DataStoreException("Error opening input stream of " + file.getAbsolutePath(), e); } }
return new LazyFileInputStream(f);