All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.rschmitt.dynamicobject.FressianReadHandler Maven / Gradle / Ivy

There is a newer version: 1.7.3
Show newest version
package com.github.rschmitt.dynamicobject;

import java.io.IOException;
import java.util.Map;

import org.fressian.Reader;
import org.fressian.handlers.ReadHandler;

public class FressianReadHandler> implements ReadHandler {
    private final Class type;

    public FressianReadHandler(Class type) {
        this.type = type;
    }

    @Override
    public Object read(Reader r, Object tag, int componentCount) throws IOException {
        return DynamicObject.wrap((Map) r.readObject(), type).afterDeserialization();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy