Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.flexdbserver.services.io
Class Convert  view Convert download Convert.java

java.lang.Object
  extended bycom.flexstor.flexdbserver.services.io.Convert
All Implemented Interfaces:
IIntervalTimer
Direct Known Subclasses:
ImportConvert

public class Convert
extends java.lang.Object
implements IIntervalTimer


Field Summary
static java.lang.String IDENTIFIER
           
protected  java.lang.Process pr
           
protected  IntervalTimer refWatchdogTimer
           
protected  java.lang.String sBitsPerPixel
           
protected  java.lang.String sColorMode
           
protected  java.lang.String sDPIX
           
protected  java.lang.String sDPIY
           
protected  java.lang.String sFileSize
           
protected  java.lang.String sFormat
           
protected  java.lang.String sHeight
           
protected  java.lang.String sInputCommand
           
protected  java.lang.String sWidth
           
 
Constructor Summary
Convert()
           
 
Method Summary
static java.lang.String[] createCommand(java.lang.String sTranslator, java.lang.String sInFile, java.lang.String sOutFile, java.lang.String sOptions)
          Creates a String[] with the command line for this conversion software.
protected  boolean dosExecute(java.lang.String[] saCommandLine)
          Execute the conversion software in windows
 boolean executeConversion(java.lang.String[] saCommandLine, int nPlatform, java.lang.String sTimeOutInterval)
          Do the actual image conversion creating the thumbnail.
 java.lang.String getColorDepth()
           
 java.lang.String getColorMode()
           
 java.lang.String getDPIX()
           
 java.lang.String getDPIY()
           
 java.lang.String getFileSize()
           
 java.lang.String getFormat()
           
 java.lang.String getHeight()
           
 boolean getImageInfo(java.lang.String[] saCommandLine, int nPlatform, java.lang.String sTimeOutInterval)
          Obtain information about the file through the conversion software
private  boolean getOutput(java.io.BufferedReader buf)
           
 java.lang.String getWidth()
           
 void timedOut()
          Called from IntervalTimer if it times out
 java.lang.String toString(java.lang.String[] args)
          Converts the String[] command line into a String commandLine
protected  boolean unixExecute(java.lang.String[] saCommandLine)
          Execute the conversion software in unix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTIFIER

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

refWatchdogTimer

protected IntervalTimer refWatchdogTimer

pr

protected java.lang.Process pr

sInputCommand

protected java.lang.String sInputCommand

sFileSize

protected java.lang.String sFileSize

sFormat

protected java.lang.String sFormat

sDPIX

protected java.lang.String sDPIX

sDPIY

protected java.lang.String sDPIY

sWidth

protected java.lang.String sWidth

sHeight

protected java.lang.String sHeight

sBitsPerPixel

protected java.lang.String sBitsPerPixel

sColorMode

protected java.lang.String sColorMode
Constructor Detail

Convert

public Convert()
Method Detail

getImageInfo

public boolean getImageInfo(java.lang.String[] saCommandLine,
                            int nPlatform,
                            java.lang.String sTimeOutInterval)
Obtain information about the file through the conversion software


executeConversion

public boolean executeConversion(java.lang.String[] saCommandLine,
                                 int nPlatform,
                                 java.lang.String sTimeOutInterval)
Do the actual image conversion creating the thumbnail.


unixExecute

protected boolean unixExecute(java.lang.String[] saCommandLine)
Execute the conversion software in unix


dosExecute

protected boolean dosExecute(java.lang.String[] saCommandLine)
Execute the conversion software in windows


createCommand

public static java.lang.String[] createCommand(java.lang.String sTranslator,
                                               java.lang.String sInFile,
                                               java.lang.String sOutFile,
                                               java.lang.String sOptions)
Creates a String[] with the command line for this conversion software.


toString

public java.lang.String toString(java.lang.String[] args)
Converts the String[] command line into a String commandLine


getOutput

private boolean getOutput(java.io.BufferedReader buf)
                   throws java.io.IOException

getFormat

public java.lang.String getFormat()

getFileSize

public java.lang.String getFileSize()

getDPIX

public java.lang.String getDPIX()

getDPIY

public java.lang.String getDPIY()

getWidth

public java.lang.String getWidth()

getHeight

public java.lang.String getHeight()

getColorDepth

public java.lang.String getColorDepth()

getColorMode

public java.lang.String getColorMode()

timedOut

public void timedOut()
Called from IntervalTimer if it times out

Specified by:
timedOut in interface IIntervalTimer