public class Executable extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
acroread
The path to Acrobat Reader.
|
| Constructor and Description |
|---|
Executable() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static String acroread
public static final Process openDocument(String fileName, boolean waitForTermination) throws IOException
fileName - waitForTermination - IOExceptionpublic static final Process openDocument(File file, boolean waitForTermination) throws IOException
file - waitForTermination - IOExceptionpublic static final Process openDocument(String fileName) throws IOException
fileName - IOExceptionpublic static final Process openDocument(File file) throws IOException
file - IOExceptionpublic static final Process printDocument(String fileName, boolean waitForTermination) throws IOException
fileName - waitForTermination - IOExceptionpublic static final Process printDocument(File file, boolean waitForTermination) throws IOException
file - waitForTermination - IOExceptionpublic static final Process printDocument(String fileName) throws IOException
fileName - IOExceptionpublic static final Process printDocument(File file) throws IOException
file - IOExceptionpublic static final Process printDocumentSilent(String fileName, boolean waitForTermination) throws IOException
fileName - waitForTermination - IOExceptionpublic static final Process printDocumentSilent(File file, boolean waitForTermination) throws IOException
file - waitForTermination - IOExceptionpublic static final Process printDocumentSilent(String fileName) throws IOException
fileName - IOExceptionpublic static final Process printDocumentSilent(File file) throws IOException
file - IOExceptionpublic static final void launchBrowser(String url) throws IOException
url - the URL you want to open in the browserIOExceptionpublic static boolean isWindows()
public static boolean isWindows9X()
public static boolean isMac()
public static boolean isLinux()
Copyright © 2015. All rights reserved.