public class Ghostscript extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_NAME_ENCODING
Name of the system property used to set the encoding to use for stdin.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteInstance()
Deletes the singleton instance of the Ghostscript object.
|
void |
exit()
Exits Ghostscript interpreter.
|
DisplayCallback |
getDisplayCallback()
Gets the display callback set on the Ghostscript interpreter (may be null
if not set).
|
static Ghostscript |
getInstance()
Singleton access method.
|
static GhostscriptRevision |
getRevision()
Gets Ghostscript revision data.
|
OutputStream |
getStdErr()
Gets the error output stream of the Ghostscript interpreter (may be null
if not set).
|
InputStream |
getStdIn()
Gets the standard input stream of the Ghostscript interpreter (may be
null if not set).
|
OutputStream |
getStdOut()
Gets the standard output stream of the Ghostscript interpreter (may be
null if not set).
|
void |
initialize(String[] args)
Initializes Ghostscript interpreter.
|
void |
runFile(String fileName)
Sends file Ghostscript interpreter.
|
void |
runString(String string)
Sends command string to Ghostscript interpreter.
|
void |
setDisplayCallback(DisplayCallback displayCallback)
Sets a display callback for the Ghostscript interpreter.
|
void |
setStdErr(OutputStream stdErr)
Sets the error output stream of the Ghostscript interpreter.
|
void |
setStdIn(InputStream stdIn)
Sets the standard input stream of the Ghostscript interpreter.
|
void |
setStdOut(OutputStream stdOut)
Sets the standard output stream of the Ghostscript interpreter.
|
public static final String PROPERTY_NAME_ENCODING
public static Ghostscript getInstance()
public DisplayCallback getDisplayCallback()
public void setDisplayCallback(DisplayCallback displayCallback)
displayCallback - DisplayCallback objectpublic OutputStream getStdErr()
public void setStdErr(OutputStream stdErr)
stdErr - OutputStream objectpublic OutputStream getStdOut()
public void setStdOut(OutputStream stdOut)
stdOut - OutputStream objectpublic InputStream getStdIn()
public void setStdIn(InputStream stdIn)
stdIn - InputStream objectpublic static GhostscriptRevision getRevision()
public void initialize(String[] args) throws GhostscriptException
args - Interpreter parameters. Use the same as Ghostscript command
line arguments.GhostscriptExceptionpublic void exit()
throws GhostscriptException
GhostscriptExceptionpublic void runString(String string) throws GhostscriptException
string - Command stringGhostscriptExceptionpublic void runFile(String fileName) throws GhostscriptException
fileName - File nameGhostscriptExceptionpublic static void deleteInstance()
throws GhostscriptException
GhostscriptExceptionCopyright © 2016. All Rights Reserved.