| Modifier and Type | Field and Description |
|---|---|
| private @Nullable PrintStream | |
| private @Nullable PrintStream |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
| private static boolean | |
| public void | redirectStandardStreams(@Nullable Path
the file path for standard output, or stdoutPath, @Nullable Path null to
indicate no redirectionthe file path for standard error, or stderrPath)null to
indicate no redirectionRedirect standard output (stdout) and standard error (stderr) to the specified file paths. |
| stderr | back to summary |
|---|---|
| private @Nullable PrintStream stderr | |
| stdout | back to summary |
|---|---|
| private @Nullable PrintStream stdout | |
| StandardStreamsHandler | back to summary |
|---|---|
| pack-priv StandardStreamsHandler() | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| isSameFile | back to summary |
|---|---|
| private static boolean isSameFile(@Nullable Path path1, @Nullable Path path2) | |
| redirectStandardStreams | back to summary |
|---|---|
| public void redirectStandardStreams(@Nullable Path stdoutPath, @Nullable Path stderrPath) Redirect standard output (stdout) and standard error (stderr) to the specified file paths. If the paths are the same, both streams are redirected to the same file. The default charset is used for writing to the files. | |