| | |
| | | for(int i = 0; i < fileList.length; i++) { |
| | | //System.out.println(fileList[i].getAbsolutePath()); |
| | | |
| | | logger.fine(fileList[i].getAbsolutePath()); |
| | | |
| | | File outDir = new File(outDirName); |
| | | File outFile = new File(outDir, fileList[i].getName()); |
| | | //System.out.println(outFile.getAbsolutePath()); |
| | | logger.info(outFile.getAbsolutePath()); |
| | | try { |
| | | Image image = ImageIO.read(fileList[i]); |
| | | MediaTracker mediaTracker = new MediaTracker(new Container()); |
| | |
| | | } |
| | | } catch (InterruptedException ex) { |
| | | //System.out.println("Error: " + ex.getLocalizedMessage()); |
| | | logger.log(Level.SEVERE, ex.getLocalizedMessage(), ex); |
| | | } catch (FileNotFoundException e) { |
| | | e.printStackTrace(); |
| | | logger.log(Level.SEVERE, e.getLocalizedMessage(), e); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | logger.log(Level.SEVERE, e.getLocalizedMessage(), e); |
| | | } |
| | | } |
| | | } else { |
| | | //System.out.println("fileList is null or empty"); |
| | | logger.info("fileList is null or empty"); |
| | | } |
| | | } |
| | | } |