Class ChemCompConverter
java.lang.Object
org.biojava.nbio.structure.io.cif.ChemCompConverter
Convert CifFiles to chem comps.
- Since:
- 6.0.0
- Author:
- Sebastian Bittrich
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChemicalComponentDictionaryfromCifFile(org.rcsb.cif.model.CifFile cifFile) Convert CifFile to chem comp dictionary.static ChemicalComponentDictionaryfromInputStream(InputStream inputStream) Convert InputStream to chem comp dictionary.static ChemicalComponentDictionaryRead data from a file and convert to chem comp dictionary.static ChemicalComponentDictionaryGet data from a URL and convert to chem comp dictionary.
-
Constructor Details
-
ChemCompConverter
public ChemCompConverter()
-
-
Method Details
-
fromPath
Read data from a file and convert to chem comp dictionary.- Parameters:
path- the source of information - can be gzipped or binary or text data- Returns:
- the target
- Throws:
IOException
-
fromURL
Get data from a URL and convert to chem comp dictionary.- Parameters:
url- the source of information - can be gzipped or binary or text data- Returns:
- the target
- Throws:
IOException- thrown when reading fails
-
fromInputStream
public static ChemicalComponentDictionary fromInputStream(InputStream inputStream) throws IOException Convert InputStream to chem comp dictionary.- Parameters:
inputStream- the InputStream of information - can be gzipped or binary or text data- Returns:
- the target
- Throws:
IOException- thrown when reading fails- See Also:
-
fromCifFile
Convert CifFile to chem comp dictionary.- Parameters:
cifFile- the source- Returns:
- the target
-