|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ProcessBuilder.Redirect
public abstract static class ProcessBuilder.Redirect
Disabled: no SafeJ information.
Represents a source of subprocess input or a destination of
subprocess output.
Each Redirect
instance is one of the following:
Redirect.PIPE
Redirect.INHERIT
Redirect.from(File)
Redirect.to(File)
Redirect.appendTo(File)
Each of the above categories has an associated unique
Type
.
Nested Class Summary | |
---|---|
static class |
ProcessBuilder.Redirect.Type
The type of a ProcessBuilder.Redirect . |
Field Summary | |
---|---|
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 Summary | |
---|---|
static ProcessBuilder.Redirect |
appendTo(File file)
Returns a redirect to append to the specified file. |
boolean |
equals(Object obj)
Compares the specified object with this Redirect for
equality. |
File |
file()
Returns the File source or destination associated
with this redirect, or null if there is no such file. |
static ProcessBuilder.Redirect |
from(File file)
Returns a redirect to read from the specified file. |
int |
hashCode()
Returns a hash code value for this Redirect . |
static ProcessBuilder.Redirect |
to(File file)
Returns a redirect to write to the specified file. |
abstract ProcessBuilder.Redirect.Type |
type()
Returns the type of this Redirect . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ProcessBuilder.Redirect PIPE
It will always be true that
Redirect.PIPE.file() == null &&
Redirect.PIPE.type() == Redirect.Type.PIPE
public static final ProcessBuilder.Redirect INHERIT
It will always be true that
Redirect.INHERIT.file() == null &&
Redirect.INHERIT.type() == Redirect.Type.INHERIT
Method Detail |
---|
public abstract ProcessBuilder.Redirect.Type type()
Redirect
.
Redirect
public File file()
File
source or destination associated
with this redirect, or null
if there is no such file.
null
if there is no such filepublic static ProcessBuilder.Redirect from(File file)
It will always be true that
Redirect.from(file).file() == file &&
Redirect.from(file).type() == Redirect.Type.READ
NullPointerException
- if the specified file is nullpublic static ProcessBuilder.Redirect to(File file)
It will always be true that
Redirect.to(file).file() == file &&
Redirect.to(file).type() == Redirect.Type.WRITE
NullPointerException
- if the specified file is nullpublic static ProcessBuilder.Redirect appendTo(File file)
It will always be true that
Redirect.appendTo(file).file() == file &&
Redirect.appendTo(file).type() == Redirect.Type.APPEND
NullPointerException
- if the specified file is nullpublic boolean equals(Object obj)
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.
equals
in class Object
obj
- the reference object with which to compare.
true
if this object is the same as the obj
argument; false
otherwise.Object.hashCode()
,
HashMap
public int hashCode()
Redirect
.
hashCode
in class Object
Redirect
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |