@Test public final void testRetrieveByHTTP() { try { BibliographicReference br = pmf.retrieveByHTTP( 15173114 ); assertNotNull( br ); assertEquals( "Lee, Homin K; Hsu, Amy K; Sajdak, Jon; Qin, Jie; Pavlidis, Paul", br.getAuthorList() ); assertEquals( "Genome Res", br.getPublication() ); assertEquals( "Coexpression analysis of human genes across many microarray data sets.", br.getTitle() ); SimpleDateFormat f = new SimpleDateFormat( "mm/HH/MM/dd/yyyy" ); assertEquals( "00/00/06/01/2004", f.format( br.getPublicationDate() ) ); } 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 );  }