Package ubic.gemma.core.loader.entrez
Class EntrezXmlUtils
java.lang.Object
ubic.gemma.core.loader.entrez.EntrezXmlUtils
Utilities for manipulating Entrez XML responses.
- Author:
- poirigui
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection
<String> extractFetchIds
(Document doc) Extract IDs from an EFetch call.static Collection
<String> extractLinkIds
(Document doc, String dbfrom, String dbto) Extract IDs from an ELink call.static Collection
<String> extractSearchIds
(Document doc) Extract IDs from an ESearch call.static String
static int
static EntrezQuery
static String
getQueryId
(Document document) static Document
parse
(InputStream is) Parse an XML reply from Entrez.static Document
parse
(InputStream is, String encoding) Parse an XML reply with a specific character encoding.
-
Constructor Details
-
EntrezXmlUtils
public EntrezXmlUtils()
-
-
Method Details
-
parse
Parse an XML reply from Entrez.This will check if there are any
ERROR
tags.- Throws:
IOException
-
parse
Parse an XML reply with a specific character encoding.This is mainly useful for querying old MINiML documents from NCBI FTP server that are declared as UTF-8 but actually use Windows-1252 encoding.
- Throws:
IOException
-
getQuery
-
getCount
-
getQueryId
-
getCookie
-
extractSearchIds
Extract IDs from an ESearch call.- See Also:
-
extractFetchIds
Extract IDs from an EFetch call.The
uilist
return type must be used in the call.- See Also:
-
extractLinkIds
Extract IDs from an ELink call.- See Also:
-