Examples of StreamingClass


Examples of com.ovea.jetty.session.serializer.jboss.serial.classmetamodel.StreamingClass

    }

    private static Object readObjectDescriptionFromStreaming(final ObjectsCache cache,
                                                             ObjectsCache.JBossSeralizationInputInterface input) throws IOException {
        int reference = input.readObjectReference();
        StreamingClass streamingClass = cache.getClassDescriptorStrategy().readClassDescription(cache, input, cache.getClassResolver(), null);
        return cache.getObjectDescriptorStrategy().readObject(input, cache, streamingClass, reference);
    }
View Full Code Here

Examples of org.jboss.serial.classmetamodel.StreamingClass

  private static Object readObjectDescriptionFromStreaming(final ObjectsCache cache,
                                        final int reference, ObjectsCache.JBossSeralizationInputInterface input) throws IOException
    {
      byte defClass = input.readByte();
      StreamingClass streamingClass = null;
      if (defClass==DataContainerConstants.NEWDEF)
      {
        int referenceId = input.readObjectReference();
        streamingClass = StreamingClass.readStream(input,cache.getClassResolver(),cache.getLoader());
        cache.putObjectInCacheRead(referenceId,streamingClass);
      }
      else
      {
        int referenceId = input.readObjectReference();
        streamingClass = (StreamingClass)cache.findObjectInCacheRead(referenceId);
        if (streamingClass==null)
        {
          throw new IOException("Didn't find StreamingClass circular refernce id=" + referenceId);
        }
       
      }

        ClassMetaData metaData = streamingClass.getMetadata();

        if (isDebug)
        {
          log.debug("Reading object for id=" + reference + " classLoader=" + cache.getLoader() + " className = " + metaData.getClassName());
        }
View Full Code Here

Examples of org.jboss.serial.classmetamodel.StreamingClass

  private static Object readObjectDescriptionFromStreaming(final ObjectsCache cache,
                                                             ObjectsCache.JBossSeralizationInputInterface input) throws IOException
    {
      int reference = input.readObjectReference();
      StreamingClass streamingClass = cache.getClassDescriptorStrategy().readClassDescription(cache, input, cache.getClassResolver(), null);
        return cache.getObjectDescriptorStrategy().readObject(input, cache, streamingClass, reference);
    }
View Full Code Here

Examples of org.jboss.serial.classmetamodel.StreamingClass

/*     */
/*     */   private static Object readObjectDescriptionFromStreaming(ObjectsCache cache, int reference, ObjectsCache.JBossSeralizationInputInterface input)
/*     */     throws IOException
/*     */   {
/* 376 */     byte defClass = input.readByte();
/* 377 */     StreamingClass streamingClass = null;
/* 378 */     if (defClass == 51)
/*     */     {
/* 380 */       int referenceId = input.readObjectReference();
/* 381 */       streamingClass = StreamingClass.readStream(input, cache.getClassResolver(), cache.getLoader());
/* 382 */       cache.putObjectInCacheRead(referenceId, streamingClass);
/*     */     }
/*     */     else
/*     */     {
/* 386 */       int referenceId = input.readObjectReference();
/* 387 */       streamingClass = (StreamingClass)cache.findObjectInCacheRead(referenceId);
/* 388 */       if (streamingClass == null)
/*     */       {
/* 390 */         throw new IOException("Didn't find StreamingClass circular refernce id=" + referenceId);
/*     */       }
/*     */
/*     */     }
/*     */
/* 395 */     ClassMetaData metaData = streamingClass.getMetadata();
/*     */
/* 397 */     if (isDebug)
/*     */     {
/* 399 */       log.debug("Reading object for id=" + reference + " classLoader=" + cache.getLoader() + " className = " + metaData.getClassName());
/*     */     }
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.