Class ChemCompConverter
- java.lang.Object
-
- org.biojava.nbio.structure.io.cif.ChemCompConverter
-
public class ChemCompConverter extends java.lang.ObjectConvert 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(java.io.InputStream inputStream)Convert InputStream to chem comp dictionary.static ChemicalComponentDictionaryfromPath(java.nio.file.Path path)Read data from a file and convert to chem comp dictionary.static ChemicalComponentDictionaryfromURL(java.net.URL url)Get data from a URL and convert to chem comp dictionary.
-
-
-
Method Detail
-
fromPath
public static ChemicalComponentDictionary fromPath(java.nio.file.Path path) throws java.io.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:
java.io.IOException
-
fromURL
public static ChemicalComponentDictionary fromURL(java.net.URL url) throws java.io.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:
java.io.IOException- thrown when reading fails
-
fromInputStream
public static ChemicalComponentDictionary fromInputStream(java.io.InputStream inputStream) throws java.io.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:
java.io.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
-
-