Examples of CacheObject


Examples of com.bbn.openmap.layer.util.cacheHandler.CacheObject

     *        createTableCacheKey
     * @param featureType the kind of feature, VPFUtil.Area,
     *        VPFUtil.Edge, VPFUtil.Point or VPFUtil.Text.
     */
    public Object get(String key, String featureType) {
        CacheObject ret = searchCache(key);
        if (ret != null)
            return ret.obj;

        ret = load(key, featureType);
        if (ret == null)
View Full Code Here

Examples of com.bbn.openmap.layer.util.cacheHandler.CacheObject

    /** Cachehandler method. */
    public CacheObject load(String RpfFramePath) {

        RpfFrame frame = new RpfFrame(RpfFramePath);
        if (frame.isValid()) {
            CacheObject obj = new CacheObject(RpfFramePath, frame);
            return obj;
        }
        return null;
    }
View Full Code Here

Examples of com.bbn.openmap.layer.util.cacheHandler.CacheObject

     * kicked off in the frame. If you don't care about Dchum, use the other get
     * method. CacheHandler method.
     */
    public Object get(RpfFrameEntry rfe) {

        CacheObject ret = searchCache(rfe.framePath);
        if (ret != null)
            return ret.obj;

        ret = load(rfe);
        if (ret == null)
View Full Code Here

Examples of com.bbn.openmap.layer.util.cacheHandler.CacheObject

            Debug.output("RpfFrameCacheHandler: Loading Frame " + rfe.framePath);
        }

        RpfFrame frame = new RpfFrame(rfe);
        if (frame.isValid()) {
            CacheObject obj = new CacheObject(rfe.framePath, frame);
            return obj;
        } else {
            if (Debug.debugging("rpf")) {
                Debug.error("RpfFrameCacheHandler:  Couldn't find frame /"
                        + rfe.framePath + "/ (" + rfe.framePath.length()
View Full Code Here

Examples of com.bbn.openmap.layer.util.cacheHandler.CacheObject

        // look for it in the local cache. If it's not there, then go
        // to the DTEDFrameCache.

        String key = new String(lat + ":" + lon + ":" + level);

        CacheObject ret = searchCache(key);
        if (ret != null) {
            if (Debug.debugging("dted")) {
                Debug.output("DTEDFrameCacheHandler.get():  retrieving frame from cache ("
                        + lat + ":" + lon + ":" + level + ")");
            }
View Full Code Here

Examples of com.bbn.openmap.util.cacheHandler.CacheObject

                    // FileCacheImageInputStream(imageURL.openStream(), null);
                    // BufferedImage fileImage = ImageIO.read(fciis);

                    BufferedImage fileImage = ((ImageReader) key).getBufferedImage();

                    return new CacheObject(key, fileImage);
                }

            } catch (Exception e) {
            } // Catch errors
View Full Code Here

Examples of com.intersys.cache.CacheObject

            res = conn.runClassMethod("CM.methgetClassDefinition", "getClassDefinition", argv, Database.RET_OBJECT);
         }


         CacheObject cobj = res.getCacheObject();
         CharacterStream characterStream = (CharacterStream) (cobj.newJavaInstance());

         CacheReader reader = characterStream.getReader();

         StringBuffer sb = new StringBuffer();
         sb.append("");
View Full Code Here

Examples of com.intersys.cache.CacheObject

            stat.close();

            res = database.runClassMethod("CM.methM1", "M1", argv, Database.RET_OBJECT);
         }

         CacheObject cobj = res.getCacheObject();
         if (cobj == null)
         {
            System.out.println("null");
         }
         CharacterStream cs = (CharacterStream)(cobj.newJavaInstance());
         BufferedReader br = new BufferedReader(cs.getReader());
         String line = br.readLine();


         Pattern patJobNr = Pattern.compile("([\\x01\\x13\\^]+)(\\d+)([\\x01\\x13\\^]+)");
View Full Code Here

Examples of com.intersys.cache.CacheObject

    * @see #_open(com.intersys.objects.Database, com.intersys.objects.Oid)
    * @see #Person
    */
   public static RegisteredObject _open(Database db, Id id) throws CacheException
   {
      CacheObject cobj = (((SysDatabase) db).openCacheObject(CACHE_CLASS_NAME, id.toString()));
      return (RegisteredObject) (cobj.newJavaInstance());
   }
View Full Code Here

Examples of com.intersys.cache.CacheObject

            res = conn.runClassMethod("CM.methM2", "M2", argv, Database.RET_OBJECT);
         }


         CacheObject cobj = res.getCacheObject();
         CharacterStream characterStream = (CharacterStream) (cobj.newJavaInstance());

         CacheReader reader = characterStream.getReader();

         StringBuffer sb = new StringBuffer();
         sb.append("");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.