public static List<RCSBLigand> getFromHeteroAtomIds(String... heteroAtomIds) {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < heteroAtomIds.length; i++) {
			if (i > 0) sb.append(",");
			sb.append(heteroAtomIds[i]);
		}
		InputStream is;
		try {
			URL url = new URL(HET_URL_STUB + sb.toString());
			is = url.openConnection().getInputStream();
		} catch (IOException e) {
			logger.warn("Couldn't open connection", e);
			return null;
		}
		return getFromHeteroAtomIds(is);
	}
public static List < RCSBLigand > getFromHeteroAtomIds ( String ... heteroAtomIds ) { StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < heteroAtomIds . length ; i ++ ) { if ( i > 0 ) sb . append ( "," ) ; sb . append ( heteroAtomIds [ i ] ) ; } InputStream is ; try { URL url = new URL ( HET_URL_STUB + sb . toString ( ) ) ; is = url . openConnection ( ) . getInputStream ( ) ; } catch ( IOException e ) { logger . warn ( "Couldn't open connection" , e ) ; return null ; } return getFromHeteroAtomIds ( is ) ; }
@return An {@link RCSBLigands} from the XML file at
{@code "http://www.pdb.org/pdb/rest/describeHet?chemicalID=hetid"}. This is the preferred factory method,
unless a different URL or input source is required.
@see RCSBDescriptionFactory#get(InputStream)