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

com.jsoniter.spi.EmptyExtension Maven / Gradle / Ivy

Go to download

jsoniter (json-iterator) is fast and flexible JSON parser available in Java and Go

There is a newer version: 0.9.23
Show newest version
package com.jsoniter.spi;

import java.lang.reflect.Type;

public class EmptyExtension implements Extension {

    @Override
    public Type chooseImplementation(Type type) {
        return type;
    }

    @Override
    public boolean canCreate(Class clazz) {
        return false;
    }

    @Override
    public Object create(Class clazz) {
        throw new UnsupportedOperationException();
    }

    @Override
    public Decoder createDecoder(String cacheKey, Type type) {
        return null;
    }

    @Override
    public Encoder createEncoder(String cacheKey, Type type) {
        return null;
    }

    @Override
    public void updateClassDescriptor(ClassDescriptor desc) {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy