Examples of deserialize()


Examples of net.floodlightcontroller.packet.Ethernet.deserialize()

            OFPacketOut p = (OFPacketOut) m;
           
            // No MAC match if packetOut doesn't have the packet.
            if (p.getPacketData() == null) return null;
           
            eth.deserialize(p.getPacketData(), 0, p.getPacketData().length);
        } else if (m.getType() == OFType.FLOW_MOD) {
            // flow-mod can't be matched by mac.
            return null;
        }
View Full Code Here

Examples of net.oauth.jsontoken.JsonTokenParser.deserialize()

     
      VerifierProviders locators = new VerifierProviders();
      locators.setVerifierProvider(SignatureAlgorithm.HS256, hmacLocator);
     
      JsonTokenParser parser = new JsonTokenParser(locators, new IgnoreAudience());
      JsonToken jwt = parser.deserialize(request);
     
      MaskedWalletResponse mwResponse = new MaskedWalletResponse(jwt);
     
      //Create the change information maskedWalletRequest
      MaskedWalletRequest maskedWalletRequest = new MaskedWalletRequest(Config.MERCHANT_ID, Config.MERCHANT_SECRET, MaskedWalletRequest.Select.PAY_SHIP, mwResponse.getGoogle_transaction_id());
View Full Code Here

Examples of net.sf.oqt.core.Serializer.deserialize()

  public void testExecute() throws MojoExecutionException, MojoFailureException, ClassNotFoundException, IOException {
    mojo.execute();
    File outputSer = new File(project.getBuild().getDirectory() + "/querytranslator/output.ser");
    assertThat(outputSer).isNotNull().exists();
    Serializer s = new Serializer(project);
    ResultVO r = s.deserialize();
    assertThat(r).isNotNull();
    Collection<PackageVO> packages = r.getPackages();
    assertThat(packages).isNotNull().isNotEmpty().hasSize(3);
    Collection<EntityVO> entities = r.getPackages().iterator().next().getEntities();
    assertThat(entities).isNotNull().isNotEmpty().hasSize(TestInfo.numberOfEntities - TestInfo.numberOfEntitiesInGenericPackage - TestInfo.numberOfEntitiesInSubPackage);
View Full Code Here

Examples of net.sf.sojo.interchange.json.JsonSerializer.deserialize()

     */
    public Object read( InputStream in ) throws Exception
    {
        JsonSerializer serializer = new JsonSerializer();
        String json = (String) super.read( in );
        return serializer.deserialize( json );
    }

    /*
     * (non-Javadoc)
     *
 
View Full Code Here

Examples of nexj.core.rpc.CharacterStreamUnmarshaller.deserialize()

            CharacterStreamUnmarshaller unmsh = (CharacterStreamUnmarshaller)Class
               .forName(sClassNameArray[i])
               .getConstructor(new Class[]{Context.class})
               .newInstance(new Object[]{m_context});

            return unmsh.deserialize(IOUtil.openBufferedReader(istream, XMLUtil.ENCODING));
         }
         catch (Exception x)
         {
            e = x;
View Full Code Here

Examples of nexj.core.rpc.soap.SOAPUnmarshaller.deserialize()

         new XMLUnmarshaller(new InvocationContext(Repository.getMetadata()),
                             Repository.getMetadata());
     
      for (int i = 0; i < nWarmup; ++i)
      {
         unmarshaller.deserialize(new StringReader(xmlOut.toString()));
      }
     
      long lStartTime = System.currentTimeMillis();
     
      for (int i = 0; i < nIterations; ++i)
View Full Code Here

Examples of nux.xom.binary.BinaryXMLCodec.deserialize()

    if (args.length == 0) { // simply convert from System.in to System.out
      InputStream in = new BufferedInputStream(System.in);
      if (codec.isBnuxDocument(in)) {
        StreamingSerializer ser = factory.createXMLSerializer(System.out, "UTF-8");
        NodeFactory redirector = XOMUtil.getRedirectingNodeFactory(ser);
        codec.deserialize(in, redirector);
      } else { // it's an XML document (or rubbish)
        StreamingSerializer ser = factory.createBinaryXMLSerializer(System.out, compressionLevel);
        NodeFactory redirector = XOMUtil.getRedirectingNodeFactory(ser);
        new Builder(redirector).build(in);
      }
View Full Code Here

Examples of org.amplafi.flow.DataClassDefinition.deserialize()

        JSONObject jsonObject = JSONObject.toJsonObject(serializedObject);
        Map<K, V> map = new LinkedHashMap<K, V>();
        for(String key : jsonObject.keys() ) {
            Object object = jsonObject.get(key);
            DataClassDefinition keyDataClassDefinition = dataClassDefinition.getKeyDataClassDefinition();
            K realKey = (K) keyDataClassDefinition.deserialize(flowPropertyProvider, flowPropertyDefinition, key);
            DataClassDefinition elementDataClassDefinition = dataClassDefinition.getElementDataClassDefinition();
            V realValue = (V) elementDataClassDefinition.deserialize(flowPropertyProvider, flowPropertyDefinition, object);
            map.put(realKey, realValue);
        }
        return map;
View Full Code Here

Examples of org.amplafi.flow.flowproperty.DataClassDefinitionImpl.deserialize()

        assertEquals(elementDataClassDefinition.getDataClass(), Long.class);
        assertNotNull(elementDataClassDefinition.getFlowTranslator());
        assertTrue(elementDataClassDefinition.getFlowTranslator() instanceof LongFlowTranslator, elementDataClassDefinition.getFlowTranslator().toString());

        // verify that the resolved result can do something useful
        Set<Long> result = dataClassDefinition.deserialize(flowPropertyProvider, null, "[34,45,67]");
        assertTrue(result.containsAll(Arrays.asList(34L, 45L, 67L)));
        assertEquals(result.size(), 3);

        String serializedResult = (String) dataClassDefinition.serialize(null, result);
        assertEquals(serializedResult, "[34,45,67]");
View Full Code Here

Examples of org.apache.axis2.databinding.DeserializationContext.deserialize()

            if (count == null) count = new Integer(0);
            elementCounts.put(qname, new Integer(count.intValue() + 1));
            Deserializer dser = param.getDeserializer(count.intValue());
            // Got a recognized param, so feed this through the deserializer
            try {
                dserContext.deserialize(arg.getXMLStreamReader(), dser);
            } catch (Exception e) {
                throw AxisFault.makeFault(e);
            }
        }
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.