|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.vcs.util.VCSProcessUtils
public final class VCSProcessUtils
Utility class for assisting with external commands and processes.
Method Summary | |
---|---|
static java.lang.String[] |
createEnvironmentParams(java.util.Map<java.lang.String,java.lang.String> envp)
Creates a string array specification of environment parameters. |
static void |
sendInputData(java.lang.Process process,
java.lang.String data)
Sends the given data as input to the process. |
static void |
sendInputData(java.lang.Process process,
java.lang.String data,
boolean close)
Sends the given data as input to the process. |
static java.net.URL[][] |
splitCommandArgumentURLs(java.net.URL[] arguments,
int maxArguments,
boolean usePaths)
Splits the given command arguments URLs such that they are suitable for separate command invocations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final java.net.URL[][] splitCommandArgumentURLs(java.net.URL[] arguments, int maxArguments, boolean usePaths)
arguments
- the command argument URLs.maxArguments
- the maximum number of arguments in each resulting list.
If this value is less than or equal to 0, no maximum is exercised.usePaths
- whether to split the command arguments URLs based on paths
instead of filenames.
public static final java.lang.String[] createEnvironmentParams(java.util.Map<java.lang.String,java.lang.String> envp)
setEnvironmentParams()
method.
envp
- a map of environment variable names and values.
public static final void sendInputData(java.lang.Process process, java.lang.String data, boolean close) throws java.io.IOException
data
- the data for writing to the process's output stream.close
- trueclose the input stream, false don't close
the input stream.
java.io.IOException
- if an I/O error occurs.public static final void sendInputData(java.lang.Process process, java.lang.String data) throws java.io.IOException
data
- the data for writing to the process's output stream.
java.io.IOException
- if an I/O error occurs.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |