public static SortedSet < String > getAll ( ) { SortedSet < String > representatives = new TreeSet < String > ( ) ; try { URL u = new URL ( allUrl ) ; InputStream stream = URLConnectionTools . getInputStream ( u , 60000 ) ; if ( stream != null ) { BufferedReader reader = new BufferedReader ( new InputStreamReader ( stream ) ) ; String line = null ; while ( ( line = reader . readLine ( ) ) != null ) { int index = line . lastIndexOf ( "structureId=" ) ; if ( index > 0 ) { representatives . add ( line . substring ( index + 13 , index + 17 ) ) ; } } } } catch ( Exception e ) { e . printStackTrace ( ) ; } return representatives ; }
Returns the current list of all PDB IDs .