code: private static InputStream getInputStream(File f) throws FileNotFoundException
  	{
  		InputStream is = new FileInputStream(f);
  		try
  		{
  			return new GZIPInputStream(is);
  		}
  		catch (IOException e)
  		{
  			return new FileInputStream(f);
  		}
  	}
docs: Gets the input stream for a given file (for tar archives)
  
  @param f
  File
  
  @return InputStream
  
  @throws FileNotFoundException
  When the file's not found