git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e57ac4e
)
JAL-1479 commented out DBRef fetching code from SIFTS to test applet build
author
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Mon, 23 Nov 2015 18:04:25 +0000
(18:04 +0000)
committer
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Mon, 23 Nov 2015 18:04:25 +0000
(18:04 +0000)
src/jalview/ws/sifts/SiftsClient.java
patch
|
blob
|
history
diff --git
a/src/jalview/ws/sifts/SiftsClient.java
b/src/jalview/ws/sifts/SiftsClient.java
index
106a66e
..
c205e9e
100644
(file)
--- a/
src/jalview/ws/sifts/SiftsClient.java
+++ b/
src/jalview/ws/sifts/SiftsClient.java
@@
-185,12
+185,11
@@
public class SiftsClient implements SiftsClientI
*/
private Entry parseSIFTs(File siftFile) throws SiftsException
{
*/
private Entry parseSIFTs(File siftFile) throws SiftsException
{
- try
+ try (InputStream in = new FileInputStream(siftFile);
+ GZIPInputStream gzis = new GZIPInputStream(in);)
{
System.out.println("File : " + siftFile.getAbsolutePath());
JAXBContext jc = JAXBContext.newInstance("jalview.xml.binding.sifts");
{
System.out.println("File : " + siftFile.getAbsolutePath());
JAXBContext jc = JAXBContext.newInstance("jalview.xml.binding.sifts");
- InputStream in = new FileInputStream(siftFile);
- GZIPInputStream gzis = new GZIPInputStream(in);
XMLStreamReader streamReader = XMLInputFactory.newInstance()
.createXMLStreamReader(gzis);
Unmarshaller um = jc.createUnmarshaller();
XMLStreamReader streamReader = XMLInputFactory.newInstance()
.createXMLStreamReader(gzis);
Unmarshaller um = jc.createUnmarshaller();
@@
-325,10
+324,10
@@
public class SiftsClient implements SiftsClientI
DBRefEntry[] dbRefs = seq.getDBRefs();
if (dbRefs == null || dbRefs.length < 1)
{
DBRefEntry[] dbRefs = seq.getDBRefs();
if (dbRefs == null || dbRefs.length < 1)
{
- final SequenceI[] seqs = new SequenceI[] { seq };
- new jalview.ws.DBRefFetcher(seqs, null, null, null, false)
- .fetchDBRefs(true);
- dbRefs = seq.getDBRefs();
+ // final SequenceI[] seqs = new SequenceI[] { seq };
+ // new jalview.ws.DBRefFetcher(seqs, null, null, null, false)
+ // .fetchDBRefs(true);
+ // dbRefs = seq.getDBRefs();
}
if (dbRefs == null || dbRefs.length < 1)
}
if (dbRefs == null || dbRefs.length < 1)