Examples of deserialize()


Examples of com.skaringa.javaxml.ObjectTransformer.deserialize()

      out.close();

      // Read a Person's XML file and create a new Person object
      // from its content.
      FileInputStream in = new FileInputStream("fred.xml");
      Person freddy = (Person) trans.deserialize(new StreamSource(in));
      in.close();

      // Check the result.
      if (fred.equals(freddy)) {
        System.out.println("OK");
View Full Code Here

Examples of com.tangosol.io.pof.PofSerializer.deserialize()

    protected Object internalDeserialize(PofReader in) throws IOException {
      PofSerializer format = null;
      try {
          Class<?> type = in.getPofContext().getClass(in.getUserTypeId());
      format = getClassCodec(type);
          Object result = resolve(format.deserialize(in));
          return result;
      }
      catch(IOException e) {
        throw new IOException("Deserialization failed, format " + format, e);
      }
View Full Code Here

Examples of com.tinkerpop.rexster.protocol.serializer.RexProSerializer.deserialize()

                throw new RexProException(String.format("unknown serializer type: %s", serializerType));
            }

            RexProMessage message = null;
            if (messageType == MessageType.SCRIPT_REQUEST) {
                message = serializer.deserialize(messageAsBytes, ScriptRequestMessage.class);
            } else if (messageType == MessageType.SESSION_REQUEST) {
                message = serializer.deserialize(messageAsBytes, SessionRequestMessage.class);
            } else if (messageType == MessageType.SESSION_RESPONSE) {
                message = serializer.deserialize(messageAsBytes, SessionResponseMessage.class);
            } else if (messageType == MessageType.ERROR) {
View Full Code Here

Examples of com.tinkerpop.rexster.protocol.serializer.json.templates.messages.RexProMessageTemplate.deserialize()

            template = SessionRequestMessageTemplate.getInstance();
        } else if (messageClass == SessionResponseMessage.class) {
            template = SessionResponseMessageTemplate.getInstance();
        }

        return (Message) template.deserialize(mapper.readTree(bytes));
    }

    public <Message extends RexProMessage> byte[] serialize(Message message, Class<Message> messageClass) throws IOException {

        RexProMessageTemplate template = null;
View Full Code Here

Examples of de.iritgo.aktera.comm.ModelRequestMessage.deserialize()

        if (keepRunningKeelDirectServer == false)
        {
          continue;
        }

        request = dsreq.deserialize(requestBytes);

        //        MultiThreadedProcessor processor =
        //          new MultiThreadedProcessor(request, replyChannel);

        //        pool.execute (processor);
View Full Code Here

Examples of de.javakaffee.web.msm.TranscoderService.deserialize()

        final MemcachedBackupSession session = createSession( manager, "123456789" );
        session.setAttribute( "person", foundPerson );

        final byte[] data = transcoderService.serialize( session );
        final MemcachedBackupSession deserialized = transcoderService.deserialize( data, manager );

        final Person deserializedPerson = (Person) deserialized.getAttribute( "person" );
        TestUtils.assertDeepEquals( foundPerson, deserializedPerson );

    }
View Full Code Here

Examples of flexjson.JSONDeserializer.deserialize()

    @Override
    public Object unserializeObject(String json)
    {
        JSONDeserializer D = new JSONDeserializer();
       
        return D.deserialize(json);
    }
   
    @Override
    public String serializeObject(Object o)
    {
View Full Code Here

Examples of gwlpr.protocol.serialization.NettySerializationFilter.deserialize()

           
            // dont forget to initialize the message
            message.init(ctx.channel());
           
            // try serialize the message
            if (!filter.deserialize(buf, message))
            {
                buf.resetReaderIndex();
                return;
            }
           
View Full Code Here

Examples of info.ata4.unity.serdes.Deserializer.deserialize()

            if (path.isScript()) {
                continue;
            }

            try {
                deser.deserialize(path);
            } catch (Exception ex) {
                L.log(Level.INFO, "Deserialization failed for " + path, ex);
                objFailed++;

                if (getOptions().isVerbose()) {
View Full Code Here

Examples of io.druid.query.aggregation.AggregatorFactory.deserialize()

              vals.put(query.getDimensionSpec().getOutputName(), resultIter.next());

              while (aggIter.hasNext() && resultIter.hasNext()) {
                final AggregatorFactory factory = aggIter.next();
                vals.put(factory.getName(), factory.deserialize(resultIter.next()));
              }

              for (PostAggregator postAgg : postAggs) {
                vals.put(postAgg.getName(), postAgg.compute(vals));
              }
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.