org.gerhardb.jibs.optimizer
Class Worker

java.lang.Object
  extended byorg.gerhardb.jibs.optimizer.Worker
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
WorkerCamera, WorkerDownload

public abstract class Worker
extends java.lang.Object
implements java.lang.Runnable

Does all the actual filtering work.

Orginally intended to be able to be driven from a command line, but that go lost in the suffle.

TODO: Conver myLabel into a listener so this does not have a graphical tie in.

Notes: All files without an image file name are automatically DELETED!!!.


Field Summary
static java.text.SimpleDateFormat FILE_DATE
           
static java.lang.String FILE_DATE_FORMAT
           
static java.text.SimpleDateFormat LONG_DATE
           
 
Constructor Summary
Worker(java.io.File[] directories, javax.swing.JLabel label, java.lang.StringBuffer results)
           
 
Method Summary
static java.lang.String digits(int number)
          Pads front of numbers less than 100,000 with zeros.
static void main(java.lang.String[] args)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_DATE_FORMAT

public static final java.lang.String FILE_DATE_FORMAT
See Also:
Constant Field Values

FILE_DATE

public static final java.text.SimpleDateFormat FILE_DATE

LONG_DATE

public static final java.text.SimpleDateFormat LONG_DATE
Constructor Detail

Worker

public Worker(java.io.File[] directories,
              javax.swing.JLabel label,
              java.lang.StringBuffer results)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

digits

public static java.lang.String digits(int number)
Pads front of numbers less than 100,000 with zeros. TODO: Should be number format!!! Probably predate number format!!!

Parameters:
number - Number to convert.
Returns:
converted number

main

public static void main(java.lang.String[] args)


Copyright © 2002 Gerhard Beck. All rights reserved. Subject to GPL.