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

org.rcsb.cif.model.binary.BinaryFile Maven / Gradle / Ivy

package org.rcsb.cif.model.binary;

import org.rcsb.cif.model.Block;
import org.rcsb.cif.model.CifFile;

import java.util.List;

public class BinaryFile implements CifFile {
    private final List blocks;
    private final String version;
    private final String encoder;

    public BinaryFile(List blocks, String version, String encoder) {
        this.blocks = blocks;
        this.version = version;
        this.encoder = encoder;
    }

    @Override
    public List getBlocks() {
        return blocks;
    }

    /**
     * Reports the encoder version that was used to create this file.
     * @return a String
     */
    public String getVersion() {
        return version;
    }


    /**
     * Reports the encoder name that was used to create this file.
     * @return a String
     */
    public String getEncoder() {
        return encoder;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy