ProcessBuilder
Nested Classes
Fields
Indicates that subprocess output will be discarded.
Indicates that subprocess I/O source or destination will be the same as those of the current process.
Indicates that subprocess I/O will be connected to the current Java process over a pipe.
Returns a redirect to append to the specified file.
boolean
Compares the specified object with this Redirect
for equality.
Returns the
File
source or destination associated with this redirect, or
null
if there is no such file.
Returns a redirect to read from the specified file.
int
Returns a hash code value for this Redirect
.
Returns a redirect to write to the specified file.
Returns the type of this Redirect
.
Indicates that subprocess I/O will be connected to the current Java process over a pipe. This is the default handling of subprocess standard I/O.
It will always be true that
Redirect.PIPE.file() == null &&
Redirect.PIPE.type() == Redirect.Type.PIPE
Indicates that subprocess I/O source or destination will be the same as those of the current process. This is the normal behavior of most operating system command interpreters (shells).
It will always be true that
Redirect.INHERIT.file() == null &&
Redirect.INHERIT.type() == Redirect.Type.INHERIT
Indicates that subprocess output will be discarded. A typical implementation discards the output by writing to an operating system specific "null file".
It will always be true that
Redirect.DISCARD.file() is the filename appropriate for the operating system
and may be null &&
Redirect.DISCARD.type() == Redirect.Type.WRITE
Returns the type of this Redirect
.
Redirect
Returns the
File
source or destination associated with this redirect, or
null
if there is no such file.
null
if there is no such file
Returns a redirect to read from the specified file.
It will always be true that
Redirect.from(file).file() == file &&
Redirect.from(file).type() == Redirect.Type.READ
file
- The File
for the Redirect
.
Returns a redirect to write to the specified file. If the specified file exists when the subprocess is started, its previous contents will be discarded.
It will always be true that
Redirect.to(file).file() == file &&
Redirect.to(file).type() == Redirect.Type.WRITE
file
- The File
for the Redirect
.
Returns a redirect to append to the specified file. Each write operation first advances the position to the end of the file and then writes the requested data. Whether the advancement of the position and the writing of the data are done in a single atomic operation is system-dependent and therefore unspecified.
It will always be true that
Redirect.appendTo(file).file() == file &&
Redirect.appendTo(file).type() == Redirect.Type.APPEND
file
- The File
for the Redirect
.
Compares the specified object with this Redirect
for equality. Returns true
if and only if the two objects are identical or both objects are Redirect
instances of the same type associated with non-null equal File
instances.
public int hashCode()
Returns a hash code value for this Redirect
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4