Package com.dyuproject.protostuff.benchmark

Examples of com.dyuproject.protostuff.benchmark.MediaContent


public class ProtostuffXmlSerializer extends AbstractProtostuffSerializer
{

    public MediaContent deserialize(byte[] array) throws Exception
    {
        MediaContent mediaContent = new MediaContent();
        XmlIOUtil.mergeFrom(array, mediaContent, mediaContent.cachedSchema());
        return mediaContent;
    }
View Full Code Here


public class ProtostuffSmileNumericSerializer extends AbstractProtostuffSerializer
{
   
    public MediaContent deserialize(byte[] array) throws Exception
    {
        MediaContent mediaContent = new MediaContent();
        SmileIOUtil.mergeFrom(array, mediaContent, mediaContent.cachedSchema(), true);
        return mediaContent;
    }
View Full Code Here

public class ProtostuffCoreGESerializer extends AbstractProtostuffSerializer
{

    public MediaContent deserialize(byte[] array) throws Exception
    {
        MediaContent mediaContent = new MediaContent();
        ProtostuffIOUtil.mergeFrom(array, 0, array.length, mediaContent, mediaContent.cachedSchema());
        return mediaContent;
    }
View Full Code Here

   
    final LinkedBuffer buffer = LinkedBuffer.allocate(512);
   
    public MediaContent deserialize(byte[] array) throws Exception
    {
        MediaContent mediaContent = new MediaContent();
        JsonIOUtil.mergeFrom(array, mediaContent, mediaContent.cachedSchema(), true);
        return mediaContent;
    }
View Full Code Here

public class ProtostuffNumericJsonSerializer extends AbstractProtostuffSerializer
{
   
    public MediaContent deserialize(byte[] array) throws Exception
    {
        MediaContent mediaContent = new MediaContent();
        JsonIOUtil.mergeFrom(array, mediaContent, mediaContent.cachedSchema(), true);
        return mediaContent;
    }
View Full Code Here

public class ProtostuffGraphSerializer extends AbstractProtostuffSerializer
{

    public MediaContent deserialize(byte[] array) throws Exception
    {
        MediaContent mediaContent = new MediaContent();
        GraphIOUtil.mergeFrom(array, mediaContent, mediaContent.cachedSchema());
        return mediaContent;
    }
View Full Code Here

public class ProtostuffCoreSerializer extends AbstractProtostuffSerializer
{

    public MediaContent deserialize(byte[] array) throws Exception
    {
        MediaContent mediaContent = new MediaContent();
        ProtobufIOUtil.mergeFrom(array, mediaContent, mediaContent.cachedSchema());
        return mediaContent;
    }
View Full Code Here

public class ProtostuffJsonSerializer extends AbstractProtostuffSerializer
{
   
    public MediaContent deserialize(byte[] array) throws Exception
    {
        MediaContent mediaContent = new MediaContent();
        JsonIOUtil.mergeFrom(array, mediaContent, mediaContent.cachedSchema(), false);
        return mediaContent;
    }
View Full Code Here

   
    static final Schema<MediaContent> schema = RuntimeSchema.getSchema(MediaContent.class);

    public MediaContent deserialize(byte[] array) throws Exception
    {
        MediaContent mediaContent = new MediaContent();
        ProtostuffIOUtil.mergeFrom(array, 0, array.length, mediaContent, schema);
        return mediaContent;
    }
View Full Code Here

public abstract class AbstractProtostuffSerializer implements ObjectSerializer<MediaContent>
{
   
    public MediaContent create()
    {
        MediaContent mediaContent = new MediaContent(
                new Media(
                        "http://javaone.com/keynote.mpg",
                        0,
                        0,
                        "video/mpg4",
View Full Code Here

TOP

Related Classes of com.dyuproject.protostuff.benchmark.MediaContent

Copyright © 2018 www.massapicom. 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.