protected void checkFileValidity(final File image) throws TwitterException {
  if (!image.exists())   throw new TwitterException(new FileNotFoundException(image + " is not found."));
  if (!image.isFile())   throw new TwitterException(new IOException(image + " is not a file."));
}

protected void checkFileValidity ( final File image ) throws TwitterException { if ( ! image . exists ( ) ) throw new TwitterException ( new FileNotFoundException ( image + " is not found." ) ) ; if ( ! image . isFile ( ) ) throw new TwitterException ( new IOException ( image + " is not a file." ) ) ; }
check the existence , and the type of the specified file .
