public static InputStream getInputStream(Object arg) throws IllegalArgumentException, IOException
	{
		if(arg instanceof File)
		{
			return new FileInputStream((File)arg);
		}
		if(arg instanceof String)
		{
			return new FileInputStream((String)arg);
		}
		if(arg instanceof URL)
		{
			return ((URL)arg).openStream();
		}
		if(arg instanceof InputStream)
		{
			return (InputStream)arg;
		}
		throw new IllegalArgumentException(String.format("Unable to produce an InputStream from class: %s", arg.getClass()));//return null;
	}