Examples of deserialize()


Examples of org.apache.axis2.databinding.deserializers.BeanDeserializer.deserialize()

                assertEquals("one", bean.getCollection(0));
                assertEquals("two", bean.getCollection(1));
                assertEquals("three", bean.getCollection(2));
            }
        });
        dser.deserialize(omReader, context);
    }
}
View Full Code Here

Examples of org.apache.blur.thirdparty.thrift_0_9_0.TDeserializer.deserialize()

      byte[] bytes = getData(blurTablePath);
      if (bytes == null) {
        throw new RuntimeException("Table [" + table + "] in cluster [" + cluster + "] not found.");
      }
      TDeserializer deserializer = new TDeserializer(new TJSONProtocol.Factory());
      deserializer.deserialize(tableDescriptor, bytes);
    } catch (TException e) {
      throw new RuntimeException(e);
    } catch (KeeperException e) {
      throw new RuntimeException(e);
    } catch (InterruptedException e) {
View Full Code Here

Examples of org.apache.cassandra.io.IColumnSerializer.deserialize()

        cf.delete(DeletionInfo.serializer().deserialize(dis, version, cf.getComparator()));
        int expireBefore = (int) (System.currentTimeMillis() / 1000);
        int size = dis.readInt();
        for (int i = 0; i < size; ++i)
        {
            cf.addColumn(columnSerializer.deserialize(dis, flag, expireBefore));
        }
        return cf;
    }

    public long contentSerializedSize(ColumnFamily cf, TypeSizes typeSizes, int version)
View Full Code Here

Examples of org.apache.cassandra.serializers.DecimalSerializer.deserialize()

    {
        BigDecimal expected = new BigDecimal("123456789123456789.987654321");
        DecimalSerializer decimal = new DecimalSerializer();
       
        ByteBuffer buffer = decimal.serialize(expected);
        BigDecimal actual = decimal.deserialize(buffer);
        Assert.assertEquals(expected, actual);
    }
}
View Full Code Here

Examples of org.apache.cassandra.serializers.TypeSerializer.deserialize()

        {
            // CollectionType override getString() to use hexToBytes. We can't change that
            // without breaking SSTable2json, but the serializer for collection have the
            // right getString so using it directly instead.
            TypeSerializer ser = type.getSerializer();
            return ser.toString(ser.deserialize(bb));
        }

        return type.getString(bb);
    }
View Full Code Here

Examples of org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize()

     */
    public void generateSaxFragment(ContentHandler contentHandler) throws SAXException {
        if (saxFragment != null) {
            XMLByteStreamInterpreter byteStreamInterpreter = new XMLByteStreamInterpreter();
            byteStreamInterpreter.setContentHandler(contentHandler);
            byteStreamInterpreter.deserialize(saxFragment);
        } else if (errorMessageParameters != null) {
            contentHandler.startPrefixMapping("i18n", I18nTransformer.I18N_NAMESPACE_URI);

            contentHandler.startElement(I18nTransformer.I18N_NAMESPACE_URI, I18nTransformer.I18N_TRANSLATE_ELEMENT, "i18n:" + I18nTransformer.I18N_TRANSLATE_ELEMENT, Constants.EMPTY_ATTRS);

View Full Code Here

Examples of org.apache.cocoon.components.sax.XMLDeserializer.deserialize()

                if (content.length > 0) {
                    XMLDeserializer interpreter = null;
                    try {
                        interpreter = (XMLDeserializer)this.manager.lookup(XMLDeserializer.ROLE);
                        interpreter.setConsumer(new IncludeXMLConsumer(consumer, consumer));
                        interpreter.deserialize(content);
                    } catch (ComponentException e) {
                        throw new ProcessingException("Component for XMLDeserializer not found." + e, e);
                    } finally {
                        if (interpreter != null) this.manager.release(interpreter);
                    }
View Full Code Here

Examples of org.apache.directmemory.serialization.Serializer.deserialize()

        assertEquals( "101", dmRq.getKey() );
        assertTrue( dmRq.isUpdate() );
        assertEquals( 123, dmRq.getExpiresIn() );

        wine = serializer.deserialize( dmRq.getCacheContent(), Wine.class );
        assertEquals( "Bordeaux", wine.getName() );

    }

    @Test
View Full Code Here

Examples of org.apache.directory.api.ldap.model.name.Rdn.deserialize()

                Rdn[] rdns = new Rdn[nbRdns];

                for ( int i = 0; i < nbRdns; i++ )
                {
                    Rdn rdn = new Rdn( schemaManager );
                    pos = rdn.deserialize( buffer, pos );
                    rdns[i] = rdn;
                }

                parentIdAndRdn.setRdns( rdns );
            }
View Full Code Here

Examples of org.apache.directory.server.core.entry.DefaultServerEntry.deserialize()

        DefaultServerEntry serverEntry = new DefaultServerEntry( schemaManager );
       
        try
        {
            serverEntry.deserialize( in );
           
            return serverEntry;
        }
        catch ( ClassNotFoundException cnfe )
        {
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.