public boolean getIfNewer( String resourceName, File destination, long timestamp )
throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
{
boolean retValue = false;
Resource resource = new Resource( resourceName );
fireGetInitiated( resource, destination );
resource.setLastModified( timestamp );
InputStream is = getInputStream( resource );
// always get if timestamp is 0 (ie, target doesn't exist), otherwise only if older than the remote file
if ( timestamp == 0 || timestamp < resource.getLastModified() )
{
retValue = true;
checkInputStream( is, resource );