|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lowagie.tools.Executable
public class Executable
This class enables you to call an executable that will show a PDF file.
Field Summary | |
---|---|
static java.lang.String |
acroread
The path to Acrobat Reader. |
Constructor Summary | |
---|---|
Executable()
|
Method Summary | |
---|---|
static boolean |
isLinux()
Checks the Operating System. |
static boolean |
isMac()
Checks the Operating System. |
static boolean |
isWindows()
Checks the Operating System. |
static boolean |
isWindows9X()
Checks the Operating System. |
static void |
launchBrowser(java.lang.String url)
Launches a browser opening an URL. |
static java.lang.Process |
openDocument(java.io.File file)
Opens a PDF document. |
static java.lang.Process |
openDocument(java.io.File file,
boolean waitForTermination)
Opens a PDF document. |
static java.lang.Process |
openDocument(java.lang.String fileName)
Opens a PDF document. |
static java.lang.Process |
openDocument(java.lang.String fileName,
boolean waitForTermination)
Opens a PDF document. |
static java.lang.Process |
printDocument(java.io.File file)
Prints a PDF document. |
static java.lang.Process |
printDocument(java.io.File file,
boolean waitForTermination)
Prints a PDF document. |
static java.lang.Process |
printDocument(java.lang.String fileName)
Prints a PDF document. |
static java.lang.Process |
printDocument(java.lang.String fileName,
boolean waitForTermination)
Prints a PDF document. |
static java.lang.Process |
printDocumentSilent(java.io.File file)
Prints a PDF document without opening a Dialog box. |
static java.lang.Process |
printDocumentSilent(java.io.File file,
boolean waitForTermination)
Prints a PDF document without opening a Dialog box. |
static java.lang.Process |
printDocumentSilent(java.lang.String fileName)
Prints a PDF document without opening a Dialog box. |
static java.lang.Process |
printDocumentSilent(java.lang.String fileName,
boolean waitForTermination)
Prints a PDF document without opening a Dialog box. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String acroread
Constructor Detail |
---|
public Executable()
Method Detail |
---|
public static final java.lang.Process openDocument(java.lang.String fileName, boolean waitForTermination) throws java.io.IOException
fileName
- waitForTermination
-
java.io.IOException
public static final java.lang.Process openDocument(java.io.File file, boolean waitForTermination) throws java.io.IOException
file
- waitForTermination
-
java.io.IOException
public static final java.lang.Process openDocument(java.lang.String fileName) throws java.io.IOException
fileName
-
java.io.IOException
public static final java.lang.Process openDocument(java.io.File file) throws java.io.IOException
file
-
java.io.IOException
public static final java.lang.Process printDocument(java.lang.String fileName, boolean waitForTermination) throws java.io.IOException
fileName
- waitForTermination
-
java.io.IOException
public static final java.lang.Process printDocument(java.io.File file, boolean waitForTermination) throws java.io.IOException
file
- waitForTermination
-
java.io.IOException
public static final java.lang.Process printDocument(java.lang.String fileName) throws java.io.IOException
fileName
-
java.io.IOException
public static final java.lang.Process printDocument(java.io.File file) throws java.io.IOException
file
-
java.io.IOException
public static final java.lang.Process printDocumentSilent(java.lang.String fileName, boolean waitForTermination) throws java.io.IOException
fileName
- waitForTermination
-
java.io.IOException
public static final java.lang.Process printDocumentSilent(java.io.File file, boolean waitForTermination) throws java.io.IOException
file
- waitForTermination
-
java.io.IOException
public static final java.lang.Process printDocumentSilent(java.lang.String fileName) throws java.io.IOException
fileName
-
java.io.IOException
public static final java.lang.Process printDocumentSilent(java.io.File file) throws java.io.IOException
file
-
java.io.IOException
public static final void launchBrowser(java.lang.String url) throws java.io.IOException
url
- the URL you want to open in the browser
java.io.IOException
public static boolean isWindows()
public static boolean isWindows9X()
public static boolean isMac()
public static boolean isLinux()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |