@Test public final void testRetrieveByHTTP2() { try { BibliographicReference br = pmf.retrieveByHTTP( 24850731 ); assertNotNull( br ); assertEquals( "Iwata-Yoshikawa, Naoko; Uda, Akihiko; Suzuki, Tadaki; Tsunetsugu-Yokota, Yasuko; Sato, Yuko; " + "Morikawa, Shigeru; Tashiro, Masato; Sata, Tetsutaro; Hasegawa, Hideki; Nagata, Noriyo", br.getAuthorList() ); assertEquals( "J Virol", br.getPublication() ); } catch ( RuntimeException e ) { this.checkCause( e ); } }
public Collection<BibliographicReference> retrieveByHTTP( Collection<Integer> pubMedIds ) throws IOException { StringBuilder buf = new StringBuilder(); for ( Integer integer : pubMedIds ) { buf.append( integer ).append( "," ); } URL toBeGotten = new URL( uri + StringUtils.chomp( buf.toString() ) ); log.debug( "Fetching " + toBeGotten ); PubMedXMLParser pmxp = new PubMedXMLParser(); return pmxp.parse( toBeGotten.openStream() ); }
PubMedXMLFetcher { public Collection<BibliographicReference> retrieveByHTTP( Collection<Integer> pubMedIds ) throws IOException { StringBuilder buf = new StringBuilder(); for ( Integer integer : pubMedIds ) { buf.append( integer ).append( "," ); } URL toBeGotten = new URL( uri + StringUtils.chomp( buf.toString() ) ); log.debug( "Fetching " + toBeGotten ); PubMedXMLParser pmxp = new PubMedXMLParser(); return pmxp.parse( toBeGotten.openStream() ); } }
PubMedXMLFetcher { public Collection<BibliographicReference> retrieveByHTTP( Collection<Integer> pubMedIds ) throws IOException { StringBuilder buf = new StringBuilder(); for ( Integer integer : pubMedIds ) { buf.append( integer ).append( "," ); } URL toBeGotten = new URL( uri + StringUtils.chomp( buf.toString() ) ); log.debug( "Fetching " + toBeGotten ); PubMedXMLParser pmxp = new PubMedXMLParser(); return pmxp.parse( toBeGotten.openStream() ); } PubMedXMLFetcher(); }
PubMedXMLFetcher { public Collection<BibliographicReference> retrieveByHTTP( Collection<Integer> pubMedIds ) throws IOException { StringBuilder buf = new StringBuilder(); for ( Integer integer : pubMedIds ) { buf.append( integer ).append( "," ); } URL toBeGotten = new URL( uri + StringUtils.chomp( buf.toString() ) ); log.debug( "Fetching " + toBeGotten ); PubMedXMLParser pmxp = new PubMedXMLParser(); return pmxp.parse( toBeGotten.openStream() ); } PubMedXMLFetcher(); Collection<BibliographicReference> retrieveByHTTP( Collection<Integer> pubMedIds ); BibliographicReference retrieveByHTTP( int pubMedId ); }
PubMedXMLFetcher { public Collection<BibliographicReference> retrieveByHTTP( Collection<Integer> pubMedIds ) throws IOException { StringBuilder buf = new StringBuilder(); for ( Integer integer : pubMedIds ) { buf.append( integer ).append( "," ); } URL toBeGotten = new URL( uri + StringUtils.chomp( buf.toString() ) ); log.debug( "Fetching " + toBeGotten ); PubMedXMLParser pmxp = new PubMedXMLParser(); return pmxp.parse( toBeGotten.openStream() ); } PubMedXMLFetcher(); Collection<BibliographicReference> retrieveByHTTP( Collection<Integer> pubMedIds ); BibliographicReference retrieveByHTTP( int pubMedId );  }