Package org.apache.jackrabbit.core.data

Examples of org.apache.jackrabbit.core.data.LazyFileInputStream


        return length;
    }

    public InputStream getStream() throws IllegalStateException, RepositoryException {
        try {
            return new LazyFileInputStream(file);
        } catch (FileNotFoundException fnfe) {
            throw new RepositoryException("file backing binary value not found", fnfe);
        }
    }
View Full Code Here


    /**
     * {@inheritDoc}
     */
    public InputStream getStream() throws IllegalStateException, RepositoryException {
        try {
            return new LazyFileInputStream(file);
        } catch (FileNotFoundException fnfe) {
            throw new RepositoryException("file backing binary value not found", fnfe);
        }
    }
View Full Code Here

        return length;
    }

    public InputStream getStream() throws IllegalStateException, RepositoryException {
        try {
            return new LazyFileInputStream(file);
        } catch (FileNotFoundException fnfe) {
            throw new RepositoryException("file backing binary value not found", fnfe);
        }
    }
View Full Code Here

            if (cache.get(fileName) == null) {
                cache.put(fileName, f.length());
            }
        }
        cache.tryPurge();
        return new LazyFileInputStream(f);
    }
View Full Code Here

            if (!f.exists() || isInPurgeMode()) {
                log("purgeMode true or file doesn't exists: getIfStored returned");
                return null;
            }
            f.setLastModified(System.currentTimeMillis());
            return new LazyFileInputStream(f);
        }
    }
View Full Code Here

                // f.exists and not in purge mode
                f.setLastModified(System.currentTimeMillis());
                cache.put(fileName, f.length());
            }
            cache.tryPurge();
            return new LazyFileInputStream(f);
        }
    }
View Full Code Here

     * @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);
    }
View Full Code Here

            if (cache.get(fileName) == null) {
                cache.put(fileName, f.length());
            }
        }
        cache.tryPurge();
        return new LazyFileInputStream(f);
    }
View Full Code Here

            if (!f.exists() || isInPurgeMode()) {
                log("purgeMode true or file doesn't exists: getIfStored returned");
                return null;
            }
            f.setLastModified(System.currentTimeMillis());
            return new LazyFileInputStream(f);
        }
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public InputStream getStream() throws IllegalStateException, RepositoryException {
        try {
            return new LazyFileInputStream(file);
        } catch (FileNotFoundException fnfe) {
            throw new RepositoryException("file backing binary value not found", fnfe);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.data.LazyFileInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.