* @return this.error (true if the source was invalid)
*/
private boolean checkFileSource(String fileStr) throws IOException {
+ error=false;
this.inFile = new File(fileStr);
// check to see if it's a Jar file in disguise.
if (!inFile.exists()) {
{
if (checkFileSource(fileStr)) {
String suffixLess = extractSuffix(fileStr);
- if (suffixLess!=null && checkFileSource(suffixLess))
+ if (suffixLess!=null)
+ {
+ if (checkFileSource(suffixLess))
+ {
+ throw new IOException("Problem opening "+inFile+" (also tried "+suffixLess+") : "+errormessage);
+ }
+ } else
{
- throw new IOException("Problem opening "+inFile+" (also tried "+fileStr+") : "+errormessage);
+ throw new IOException("Problem opening "+inFile+" : "+errormessage);
}
- throw new IOException("Problem opening "+inFile+" : "+errormessage);
}
}
else if (type.equals(AppletFormatAdapter.URL))