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

com.fasterxml.storemate.shared.util.RawEntryConverter Maven / Gradle / Ivy

There is a newer version: 1.1.4
Show newest version
package com.fasterxml.storemate.shared.util;

import java.io.IOException;

/**
 * Interface used for converters needed to convert between raw entries
 * and actual Object representations.
 */
public abstract class RawEntryConverter
{
    public T fromRaw(byte[] raw) throws IOException {
        return fromRaw(raw, 0, raw.length);
    }
    
    public abstract T fromRaw(byte[] raw, int offset, int length) throws IOException;

    public abstract byte[] toRaw(T value) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy