com.ptc.wvs.server.thumbnail
Class GeneratorNative
java.lang.Object
com.ptc.wvs.server.thumbnail.GeneratorNative
- All Implemented Interfaces:
- GeneratorInterface
- public class GeneratorNative
- extends Object
- implements GeneratorInterface
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
socket
private Socket socket
wvsProperties
private static WVSProperties wvsProperties
VERBOSE
private static boolean VERBOSE
GeneratorNative
public GeneratorNative()
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)