mInputStream = new BufferedInputStream(in); mReader = new LineNumberReader(new InputStreamReader(in));
	public FileOrURL(String name) throws FileNotFoundException, MapyrusException	{		InputStream in;		try		{			/*			 * First try opening as an URL.			 */			mURL = new URL(name);			try			{				in = mURL.openStream();			}			catch (IOException e)			{				/*				 * The IOException error message is not very helpful.  Throw our own exception.				 */				throw new MapyrusException(MapyrusMessages.get(MapyrusMessages.CANNOT_OPEN_URL) + ": " +					mURL.toString() + Constants.LINE_SEPARATOR + e.getMessage());			}			mInputStream = new BufferedInputStream(in);			mReader = new LineNumberReader(new InputStreamReader(in));			mIsURL = true;		}		catch (MalformedURLException e)		{			/*			 * It is not a valid URL, try opening it as a plain file instead.			 */			FileInputStream f = new FileInputStream(name);			mInputStream = new BufferedInputStream(f);			mReader = new LineNumberReader(new InputStreamReader(f));			mIsURL = false;		}		mName = name;	}