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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChemicalComponentDictionary
fromCifFile
(org.rcsb.cif.model.CifFile cifFile) Convert CifFile to chem comp dictionary.static ChemicalComponentDictionary
fromInputStream
(InputStream inputStream) Convert InputStream to chem comp dictionary.static ChemicalComponentDictionary
Read data from a file and convert to chem comp dictionary.static ChemicalComponentDictionary
Get 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
-