Example #1
0
 static {
   // manually set the ImageIO temp directory so that systems with incorrect defaults won't fail
   // when processing images.
   File directory = WikiUtil.getTempDirectory();
   if (directory.exists()) {
     ImageIO.setCacheDirectory(directory);
   }
 }