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

com.xxdb.compression.DecoderFactory Maven / Gradle / Ivy

There is a newer version: 3.00.2.2
Show newest version
package com.xxdb.compression;

public class DecoderFactory {

    private DecoderFactory() {}
    
    public static Decoder get(int method){
    	if(method == 1)
    		return new LZ4Decoder();
    	else if(method == 2)
    		return new DeltaOfDeltaDecoder();
    	else
    		throw new RuntimeException("Invalid compression method " + method);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy