Examples of deserialize()


Examples of com.jaxws.json.feature.JSONWebService.deserialize()

        // JOSN input contains specified property.
        if (elements.containsKey(expectedJSONPropName)) {
          Object value   = elements.get(expectedJSONPropName);
            if (writeMethod != null) {
                if (writeMethodConfig != null
                    && !writeMethodConfig.deserialize()) {
                  if(traceEnabled){
                    traceLog.info(String.format("Ignoring property %s due to deserialize set to false", expectedJSONPropName));
                  }
                  continue;
                }
View Full Code Here

Examples of com.massivecraft.mcore.xlib.gson.annotations.Expose.deserialize()

      return true;
    }

    if (requireExpose) {
      Expose annotation = field.getAnnotation(Expose.class);
      if (annotation == null || (serialize ? !annotation.serialize() : !annotation.deserialize())) {
        return true;
      }
    }

    if (!serializeInnerClasses && isInnerClass(field.getType())) {
View Full Code Here

Examples of com.netflix.astyanax.model.Composite.deserialize()

    @Override
    public Composite fromByteBuffer(ByteBuffer byteBuffer) {
        Composite composite = new Composite();
        composite.setComparatorsByPosition(getComparators());
        composite.deserialize(byteBuffer);
        return composite;
    }

    @Override
    public ByteBuffer getNext(ByteBuffer byteBuffer) {
View Full Code Here

Examples of com.netflix.astyanax.model.DynamicComposite.deserialize()

    public DynamicComposite fromByteBuffer(ByteBuffer byteBuffer) {
        if (byteBuffer == null)
            return null;
        ByteBuffer dup = byteBuffer.duplicate();
        DynamicComposite composite = new DynamicComposite();
        composite.deserialize(dup);
        return composite;
    }

    @Override
    public ComparatorType getComparatorType() {
View Full Code Here

Examples of com.netflix.suro.input.thrift.MessageSetSerDe.deserialize()

    @Test
    public void test() {
        TMessageSet messageSet = TestConnectionPool.createMessageSet(100);
        MessageSetSerDe serde = new MessageSetSerDe();
        byte[] payload = serde.serialize(messageSet);
        TMessageSet d = serde.deserialize(payload);

        assertTrue(Arrays.equals(d.getMessages(), messageSet.getMessages()));

        List<Message> messageList = new LinkedList<Message>();
        for (Message m : new MessageSetReader(messageSet)) {
View Full Code Here

Examples of com.netflix.suro.message.StringSerDe.deserialize()

        StringSerDe serde = new StringSerDe();

        int i = 0;
        while (r.next(routingKey, value)) {
            assertEquals(routingKey.toString(), "routingKey");
            assertEquals(serde.deserialize(value.getMessage().getPayload()), message + i);
            ++i;
        }
        r.close();

        return i;
View Full Code Here

Examples of com.netflix.zeno.serializer.NFTypeSerializer.deserialize()

    }

    @SuppressWarnings({ "rawtypes", "unchecked" })
    private <T> T deserializeObject(JsonReadGenericRecord rec, String typeName, JsonNode node) {
        NFTypeSerializer serializer = ((NFTypeSerializer) (framework.getSerializer(typeName)));
        return (T) serializer.deserialize(new JsonReadGenericRecord(serializer.getFastBlobSchema(), node));
    }

    @Override
    public <T> T deserializeObject(JsonReadGenericRecord rec, String fieldName, Class<T> clazz) {
        JsonNode node = getJsonNode(rec, fieldName);
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.interfaces.IMessage.Deserialize()

        if (message != null)
        {
            try
            {
                message.Deserialize(map);
                return message;
            }
            catch (Exception e)
            {
                JLogger.warn("Exception while trying to Deserialize"  + eventName.toString() + ":" + Utils.getExceptionStackTraceAsString(e));                   
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.message.LindenMessages.GetDisplayNamesMessage.Deserialize()

           try
                     {
                         if (error != null)
                             throw error;
                         GetDisplayNamesMessage msg = new GetDisplayNamesMessage();
                         msg.Deserialize((OSDMap) result);
                         callback.handleEvent(null, new DisplayNamesCallbackArgs(true, msg.Agents, msg.BadIDs));
                     }
                     catch (Exception ex)
                     {
                         JLogger.warn("Failed to call GetDisplayNames capability: " + Utils.getExceptionStackTraceAsString(ex));
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.message.LindenMessages.UploadBakedTextureMessage.Deserialize()

              OSD result = e.getResult();
              Exception error = e.getError();             
                        if (error == null && (result instanceof OSDMap))
                        {
                            UploadBakedTextureMessage message = new UploadBakedTextureMessage();
                            message.Deserialize((OSDMap)result);
   
                            if (message.Request.State.equals("upload"))
                            {
                                URI uploadUrl = ((UploaderRequestUpload)message.Request).Url;
   
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.