|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.tools.Executable
public class Executable
This class enables you to call an executable that will show a PDF file.
| Field Summary | |
|---|---|
static String |
acroread
The path to Acrobat Reader. |
| Constructor Summary | |
|---|---|
Executable()
|
|
| Method Summary | |
|---|---|
private static Process |
action(String fileName,
String parameters,
boolean waitForTermination)
Performs an action on a PDF document. |
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(String url)
Launches a browser opening an URL. |
static Process |
openDocument(File file)
Opens a PDF document. |
static Process |
openDocument(File file,
boolean waitForTermination)
Opens a PDF document. |
static Process |
openDocument(String fileName)
Opens a PDF document. |
static Process |
openDocument(String fileName,
boolean waitForTermination)
Opens a PDF document. |
static Process |
printDocument(File file)
Prints a PDF document. |
static Process |
printDocument(File file,
boolean waitForTermination)
Prints a PDF document. |
static Process |
printDocument(String fileName)
Prints a PDF document. |
static Process |
printDocument(String fileName,
boolean waitForTermination)
Prints a PDF document. |
static Process |
printDocumentSilent(File file)
Prints a PDF document without opening a Dialog box. |
static Process |
printDocumentSilent(File file,
boolean waitForTermination)
Prints a PDF document without opening a Dialog box. |
static Process |
printDocumentSilent(String fileName)
Prints a PDF document without opening a Dialog box. |
static Process |
printDocumentSilent(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 String acroread
| Constructor Detail |
|---|
public Executable()
| Method Detail |
|---|
private static Process action(String fileName,
String parameters,
boolean waitForTermination)
throws IOException
fileName - parameters - waitForTermination -
IOException
public static final Process openDocument(String fileName,
boolean waitForTermination)
throws IOException
fileName - waitForTermination -
IOException
public static final Process openDocument(File file,
boolean waitForTermination)
throws IOException
file - waitForTermination -
IOException
public static final Process openDocument(String fileName)
throws IOException
fileName -
IOException
public static final Process openDocument(File file)
throws IOException
file -
IOException
public static final Process printDocument(String fileName,
boolean waitForTermination)
throws IOException
fileName - waitForTermination -
IOException
public static final Process printDocument(File file,
boolean waitForTermination)
throws IOException
file - waitForTermination -
IOException
public static final Process printDocument(String fileName)
throws IOException
fileName -
IOException
public static final Process printDocument(File file)
throws IOException
file -
IOException
public static final Process printDocumentSilent(String fileName,
boolean waitForTermination)
throws IOException
fileName - waitForTermination -
IOException
public static final Process printDocumentSilent(File file,
boolean waitForTermination)
throws IOException
file - waitForTermination -
IOException
public static final Process printDocumentSilent(String fileName)
throws IOException
fileName -
IOException
public static final Process printDocumentSilent(File file)
throws IOException
file -
IOException
public static final void launchBrowser(String url)
throws IOException
url - the URL you want to open in the browser
IOExceptionpublic 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 | ||||||||