com.ptc.wvs.server.thumbnail
Class GeneratorNative

java.lang.Object
  extended bycom.ptc.wvs.server.thumbnail.GeneratorNative
All Implemented Interfaces:
GeneratorInterface

public class GeneratorNative
extends Object
implements GeneratorInterface


Field Summary
private  Socket socket
           
private static boolean VERBOSE
           
private static WVSProperties wvsProperties
           
 
Constructor Summary
GeneratorNative()
           
 
Method Summary
 void connect(int port)
           
 void connect(int port, String host)
           
 void disconnect()
           
 String generateThumbNail(String directory, String file)
           
private  boolean getFile(String directory, WVSProperties props, String id, String file)
           
static void main(String[] args)
           
private  boolean putFiles(String directory, WVSProperties props, String id)
           
private  String receive()
           
private  void send(String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

socket

private Socket socket

wvsProperties

private static WVSProperties wvsProperties

VERBOSE

private static boolean VERBOSE
Constructor Detail

GeneratorNative

public GeneratorNative()
Method Detail

connect

public void connect(int port)
             throws IOException
Throws:
IOException

connect

public void connect(int port,
                    String host)
             throws IOException
Throws:
IOException

send

private void send(String message)

receive

private String receive()
                throws IOException
Throws:
IOException

disconnect

public void disconnect()
                throws IOException
Throws:
IOException

putFiles

private boolean putFiles(String directory,
                         WVSProperties props,
                         String id)

getFile

private boolean getFile(String directory,
                        WVSProperties props,
                        String id,
                        String file)

generateThumbNail

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

main

public static void main(String[] args)