Examples of deserialize()


Examples of aterm.pure.binary.BinaryReader.deserialize()

    ByteBuffer buffer = ByteBuffer.allocate(input.length);
    buffer.put(input);
    buffer.flip();
   
    BinaryReader binaryReader = new BinaryReader(pureFactory);
    binaryReader.deserialize(buffer);
    ATerm result = binaryReader.getRoot();
   
    if(result != expectedResult){
      log("The result didn't match the expected result.");
      /*log("Was: "+result+", expected: "+expectedResult);*/
 
View Full Code Here

Examples of be.demmel.jgws.packets.serialization.PacketDeserializer.deserialize()

        LOGGER.error(msg);
        throw new IllegalStateException(msg);
      }

      // Use the PacketUnmarshaller to create a new packet instance
      Packet packet = packetDeserializer.deserialize(in);
     
      if(LOGGER.isInfoEnabled() && !this.logBlackList.contains(packet.getClass())) {
        LOGGER.debug("Decoded body: {}", packet);
      }
     
View Full Code Here

Examples of be.demmel.jgws.packets.serialization.reflection.ReflectionPacketDeserializer.deserialize()

        // the header isn't parsed by using reflection
        buffer.readByte();
        buffer.readByte();
       
        // deserializer the object
        P008_TestPacket testIncomingPacket = (P008_TestPacket) packetDeserializer.deserialize(buffer);

        // test that the deserializer correctly extracted all values
        assertEquals(1, testIncomingPacket.getUnsignedInteger1());
        assertEquals(2, testIncomingPacket.getUnsignedInteger2());
        assertEquals(3, testIncomingPacket.getUnsignedShort1());
View Full Code Here

Examples of br.com.caelum.vraptor.deserialization.Deserializer.deserialize()

    if (deserializer == null) {
      unsupported("Unable to handle media type [%s]: no deserializer found.", status, contentType);
      return;
    }

    Object[] deserialized = deserializer.deserialize(request.getInputStream(), method);
    logger.debug("Deserialized parameters for {} are {} ", method, deserialized);

    for (int i = 0; i < deserialized.length; i++) {
      if (deserialized[i] != null) {
        methodInfo.setParameter(i, deserialized[i]);
View Full Code Here

Examples of br.com.caelum.vraptor.serialization.Deserializer.deserialize()

    if (deserializer == null) {
      unsupported("Unable to handle media type [%s]: no deserializer found.", status, contentType);
      return;
    }

    Object[] deserialized = deserializer.deserialize(request.getInputStream(), method);
    logger.debug("Deserialized parameters for {} are {} ", method, deserialized);

    for (int i = 0; i < deserialized.length; i++) {
      if (deserialized[i] != null) {
        methodInfo.setParameter(i, deserialized[i]);
View Full Code Here

Examples of com.alibaba.citrus.hessian.io.JavaDeserializer.FieldDeserializer.deserialize()

        Object key = in.readObject();

        FieldDeserializer deser = (FieldDeserializer) _fieldMap.get(key);

        if (deser != null)
          deser.deserialize(in, obj);
        else
          in.readObject();
      }

      in.readMapEnd();
View Full Code Here

Examples of com.alibaba.citrus.hessian.io.UnsafeDeserializer.FieldDeserializer.deserialize()

        Object key = in.readObject();
       
        FieldDeserializer deser = _fieldMap.get(key);

        if (deser != null)
    deser.deserialize(in, obj);
        else
          in.readObject();
      }
     
      in.readMapEnd();
View Full Code Here

Examples of com.alibaba.dubbo.common.serialize.Serialization.deserialize()

          byte flag = header[2], proto = (byte)( flag & SERIALIZATION_MASK );
          Serialization s = getSerializationById(proto);
          if (s == null) {
              s = getSerialization(channel);
          }
          ObjectInput in = s.deserialize(channel.getUrl(), is);
          // get request id.
          long id = Bytes.bytes2long(header, 4);
          if( ( flag & FLAG_REQUEST ) == 0 ) {
              // decode response.
              Response res = new Response(id);
View Full Code Here

Examples of com.alibaba.fastjson.annotation.JSONField.deserialize()

            if (annotation == null) {
                annotation = TypeUtils.getSupperMethodAnnotation(clazz, method);
            }

            if (annotation != null) {
                if (!annotation.deserialize()) {
                    continue;
                }

                if (annotation.name().length() != 0) {
                    String propertyName = annotation.name();
View Full Code Here

Examples of com.backtype.hadoop.pail.PailStructure.deserialize()

    protected Object deserialize(BytesWritable record) {
      PailStructure structure = getStructure();
      if (structure instanceof BinaryPailStructure) {
        return record;
      } else {
        return structure.deserialize(Utils.getBytes(record));
      }
    }

    protected void serialize(Object obj, BytesWritable ret) {
      if (obj instanceof BytesWritable) {
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.