result = FileUtil.readContents( in, m_encoding );
}
catch( IOException e )
{
log.error("Failed to read", e);
throw new ProviderException("I/O error: "+e.getMessage());
}
finally
{
IOUtils.closeQuietly( in );
}
}
else
{
log.warn("Failed to read page from '"+pagedata.getAbsolutePath()+"', possibly a permissions problem");
throw new ProviderException("I cannot read the requested page.");
}
}
else
{
// This is okay.