Package com.qspin.qtaste.io

Examples of com.qspin.qtaste.io.ObjectFile


        System.out.println("End of dump (Cache contains " + hash.size() + " entries)");
    }

    public void save(String fout) throws Exception {
        logger.info("Saving cache to file " + fout);
        new ObjectFile(fout).save(hash);
        logger.info("" + hash.size() + " entries in the cache");
    }
View Full Code Here


    }

    @SuppressWarnings("unchecked")
    public void load(String fin) throws Exception {
        logger.info("Loading cache from file " + fin);
        hash = (HashtableLinkedList<String, Data>) new ObjectFile(fin).load();
        logger.info("" + hash.size() + " entries in the cache");
    }
View Full Code Here

    //private static Logger logger = Log4jLoggerFactory.getLogger(CachePusherImpl.class);
    private ArrayList<Data> array;
   
     @SuppressWarnings("unchecked")
    public CachePusherImpl(File file) throws Exception {
        super((HashtableLinkedList<String,Data>) new ObjectFile(file.toString()).load());
    }
View Full Code Here

TOP

Related Classes of com.qspin.qtaste.io.ObjectFile

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.