git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TreePanel takes viewport
[jalview.git]
/
src
/
jalview
/
io
/
IdentifyFile.java
diff --git
a/src/jalview/io/IdentifyFile.java
b/src/jalview/io/IdentifyFile.java
index
dbee007
..
65c0f70
100755
(executable)
--- a/
src/jalview/io/IdentifyFile.java
+++ b/
src/jalview/io/IdentifyFile.java
@@
-42,6
+42,7
@@
public class IdentifyFile
public static String Identify(String file, String protocol)
\r
{
\r
String reply = "PFAM";
\r
public static String Identify(String file, String protocol)
\r
{
\r
String reply = "PFAM";
\r
+ String error = "FILE NOT FOUND";
\r
\r
try
\r
{
\r
\r
try
\r
{
\r
@@
-53,12
+54,11
@@
public class IdentifyFile
}
\r
else if (protocol.equals("URL"))
\r
{
\r
}
\r
else if (protocol.equals("URL"))
\r
{
\r
- reply = "URL NOT FOUND";
\r
-
\r
+ error = "URL NOT FOUND";
\r
URL url = new URL(file);
\r
reader = new BufferedReader(new InputStreamReader(
\r
url.openStream()));
\r
URL url = new URL(file);
\r
reader = new BufferedReader(new InputStreamReader(
\r
url.openStream()));
\r
- reply = "error";
\r
+
\r
}
\r
else if (protocol.equals("Paste"))
\r
{
\r
}
\r
else if (protocol.equals("Paste"))
\r
{
\r
@@
-128,8
+128,8
@@
public class IdentifyFile
catch (Exception ex)
\r
{
\r
System.err.println("File Identification failed!\n" + ex);
\r
catch (Exception ex)
\r
{
\r
System.err.println("File Identification failed!\n" + ex);
\r
+ return error;
\r
}
\r
}
\r
-
\r
return reply;
\r
}
\r
}
\r
return reply;
\r
}
\r
}
\r