Package org.fjank.jcache

Examples of org.fjank.jcache.StreamCacheObject


     */
    public final OutputStream createStream(final Object handle)
        throws ObjectExistsException, InvalidArgumentException {
        CacheObject co = convertHandle(handle);
        try {
            StreamCacheObject str =
                new StreamCacheObject(co.getKey(), null, co.getGroup(),
                    co.getRegion(), CacheImpl.getCache(true).getReferenceQueue());
            return str.getOutputStream();
        } catch (CacheNotAvailableException e) {
            throw new InvalidArgumentException("The cache is not available.");
        } catch (CacheException e) {
            throw new InvalidArgumentException(
                "The cache is not available, as an error occured."
View Full Code Here

TOP

Related Classes of org.fjank.jcache.StreamCacheObject

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.