Class ChemCompConverter
- java.lang.Object
-
- org.biojava.nbio.structure.io.cif.ChemCompConverter
-
public class ChemCompConverter extends Object
Convert CifFiles to chem comps.- Since:
- 6.0.0
- Author:
- Sebastian Bittrich
-
-
Constructor Summary
Constructors Constructor Description ChemCompConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChemicalComponentDictionaryfromCifFile(org.rcsb.cif.model.CifFile cifFile)Convert CifFile to chem comp dictionary.static ChemicalComponentDictionaryfromInputStream(InputStream inputStream)Convert InputStream to chem comp dictionary.static ChemicalComponentDictionaryfromPath(Path path)Read data from a file and convert to chem comp dictionary.static ChemicalComponentDictionaryfromURL(URL url)Get data from a URL and convert to chem comp dictionary.
-
-
-
Constructor Detail
-
ChemCompConverter
public ChemCompConverter()
-
-
Method Detail
-
fromPath
public static ChemicalComponentDictionary fromPath(Path path) throws IOException
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
public static ChemicalComponentDictionary fromURL(URL url) throws IOException
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:
CifStructureConverter.fromInputStream(InputStream, FileParsingParameters)
-
fromCifFile
public static ChemicalComponentDictionary fromCifFile(org.rcsb.cif.model.CifFile cifFile)
Convert CifFile to chem comp dictionary.- Parameters:
cifFile- the source- Returns:
- the target
-
-