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

org.rcsb.mmtf.utils.CodecUtils Maven / Gradle / Ivy

There is a newer version: 1.0.11
Show newest version
package org.rcsb.mmtf.utils;

import java.util.List;

/**
 * A utility class of static methods and constants
 * for the codec project.
 * @author Anthony Bradley
 *
 */
public class CodecUtils {
	
	
	/** The base url for this version of MMTF. */
	public static final String BASE_URL = "http://mmtf.rcsb.org/v0.2/full/";
	

	/** The maximum number of chars in a chain entry. */
	public static final int MAX_CHARS_PER_CHAIN_ENTRY= 4;
	


	/**
	 * Convert an integer list to an integer array
	 * @param integerList the input list
	 * @return the output array
	 */
	public static int[] convertToIntArray(List integerList) {
		int[] integerArray = new int[integerList.size()];
		for(int i=0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy