Java™ Platform
Standard Ed. 8
compact1, compact2, compact3
java.lang
Class ProcessBuilder.Redirect
-
-
Field Summary
Fields
| Modifier and Type |
Field |
Description |
static ProcessBuilder.Redirect |
INHERIT |
Indicates that subprocess I/O source or destination will be the
same as those of the current process.
|
static ProcessBuilder.Redirect |
PIPE |
Indicates that subprocess I/O will be connected to the
current Java process over a pipe.
|
-
-
Method Detail
-
file
public File file()
Returns the
File source or destination associated
with this redirect, or
null if there is no such file.
- Returns:
- the file associated with this redirect,
or
null if there is no such file
-
equals
public boolean equals(Object obj)
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.
- Overrides:
equals in class Object
- Parameters:
obj - the reference object with which to compare.
- Returns:
true if this object is the same as the obj
argument; false otherwise.
- See Also:
Object.hashCode(),
HashMap
Java™ Platform
Standard Ed. 8
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.