Package io.ningyuan.jPdbApi
Class Pdb
- java.lang.Object
-
- io.ningyuan.jPdbApi.Pdb
-
public class Pdb extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetInputStream()Get an InputStream for this entry's PDB file.StringgetStructureId()StringgetTitle()Get the descriptor title for this entry.voidload()Access the RCSB REST API to load this entry'stitle.StringtoString()
-
-
-
Constructor Detail
-
Pdb
public Pdb(String structureId)
-
-
Method Detail
-
load
public void load() throws IOExceptionAccess the RCSB REST API to load this entry'stitle. For example, thetitlefor the entry withstructureId"1B9G"is"INSULIN-LIKE-GROWTH-FACTOR-1".- Throws:
IOException
-
getInputStream
public InputStream getInputStream() throws IOException
Get an InputStream for this entry's PDB file.- Throws:
IOException
-
getStructureId
public String getStructureId()
-
getTitle
public String getTitle()
Get the descriptor title for this entry. Make sure to callloadfirst, or this will returnnull.
-
-