com.ptc.wvs.server.thumbnail
Class Generator

java.lang.Object
  extended bycom.ptc.wvs.server.thumbnail.Generator
All Implemented Interfaces:
GeneratorInterface, GenericWorkerInterface

public class Generator
extends Object
implements GeneratorInterface, GenericWorkerInterface


Field Summary
private  boolean enabled
           
private  GeneratorInterface impl
           
private  String javacmd
           
private  String nativecmd
           
private static boolean VERBOSE
           
private static WVSProperties wvsProperties
           
 
Constructor Summary
Generator()
           
Generator(boolean forceConstruct)
           
 
Method Summary
 String generateThumbNail(String dir, String file)
           
 String generateThumbNail(String dir, String file, boolean checkForCadAgent)
           
static void main(String[] args)
           
 String runWorker(String args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enabled

private boolean enabled

impl

private GeneratorInterface impl

javacmd

private String javacmd

nativecmd

private String nativecmd

wvsProperties

private static WVSProperties wvsProperties

VERBOSE

private static boolean VERBOSE
Constructor Detail

Generator

public Generator()

Generator

public Generator(boolean forceConstruct)
Method Detail

generateThumbNail

public String generateThumbNail(String dir,
                                String file)
                         throws IOException
Specified by:
generateThumbNail in interface GeneratorInterface
Throws:
IOException

generateThumbNail

public String generateThumbNail(String dir,
                                String file,
                                boolean checkForCadAgent)
                         throws IOException
Throws:
IOException

runWorker

public String runWorker(String args)
                 throws Exception
Specified by:
runWorker in interface GenericWorkerInterface
Throws:
Exception

main

public static void main(String[] args)