net.sf.mmm.util.process.api.package-info Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mmm-util-io Show documentation
Show all versions of mmm-util-io Show documentation
Utilities for input/output and streaming.
The newest version!
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
/**
* Provides the API for utilities that help to deal with {@link java.lang.Process}es.
* Process-Util API
Dealing with {@link java.lang.Process} is NOT an easy task. The streams for {@code stdin},
* {@code stdout}, and {@code stderr} need to be transferred asynchronously. Creating a pipe is the typical task and is
* easily done with a shell like {@code bash}. However solving this with java is quite a little challenge if you do this
* from scratch. Even worse there is a bug in java when creating processes via {@link java.lang.Runtime} which causes
* that sub-processes are NOT terminated and keep running if a {@link java.lang.Process} is
* {@link java.lang.Process#destroy() destroyed}.
* This package prevents you from those headaches by providing utilities that make it easier to deal with
* {@link java.lang.Process}es.
* If you want to use this in a server application, you can inject an {@link java.util.concurrent.Executor} providing a
* thread-pool.
*/
package net.sf.mmm.util.process.api;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy