Class Ghostscript
- java.lang.Object
-
- com.levigo.jadice.server.ghostscript.worker.Ghostscript
-
public class Ghostscript extends Object
Bridging object between jadice server and the command line API of ghostscript.
-
-
Constructor Summary
Constructors Constructor Description Ghostscript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
awaitCompletion()
void
cleanup()
Clean up and bring this ghostscript instance back to an initial state.protected void
finalize()
List<String>
getDefaultArguments()
String
getExecutableName()
List<String>
getFontResourceDirs()
List<String>
getGenericResourceDirs()
FileOutputStream
getInputSpool(StreamDescriptor sourceDescriptor)
String
getInstanceName()
long
getInstanceNumber()
List<String>
getJobArguments()
File[]
getOutputFiles()
String
getVersion()
boolean
isAlive()
boolean
isSplitOutput()
void
setDefaultArguments(List<String> defaultArguments)
void
setExecutableName(String executable)
void
setFontResourceDirs(List<String> fontResourceDirs)
void
setGenericResourceDirs(List<String> genericResourceDirs)
void
setJobArguments(List<String> jobArguments)
void
setSplitOutput(boolean splitOutput)
void
setTempDir(File tempDir)
void
shutdown()
void
start(GhostscriptWorker worker)
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
getInstanceName
public String getInstanceName()
-
isAlive
public boolean isAlive()
-
shutdown
public void shutdown()
-
start
public void start(GhostscriptWorker worker) throws Exception
- Throws:
Exception
-
awaitCompletion
public int awaitCompletion() throws InterruptedException
- Throws:
InterruptedException
-
getInstanceNumber
public long getInstanceNumber()
-
getExecutableName
public String getExecutableName()
-
setExecutableName
public void setExecutableName(String executable)
-
setTempDir
public void setTempDir(File tempDir)
-
cleanup
public void cleanup()
Clean up and bring this ghostscript instance back to an initial state.
-
getInputSpool
public FileOutputStream getInputSpool(StreamDescriptor sourceDescriptor) throws FileNotFoundException
- Throws:
FileNotFoundException
-
isSplitOutput
public boolean isSplitOutput()
-
setSplitOutput
public void setSplitOutput(boolean splitOutput)
-
getOutputFiles
public File[] getOutputFiles()
-
-