public class ExecUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExecUtil.Redirection |
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_SIZE |
| Constructor and Description |
|---|
ExecUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
execute(String[] cmd,
OutputStream std,
OutputStream err) |
static void |
quietlyClose(Reader reader)
Close the given reader, ignoring exceptions.
|
static void |
quietlyClose(Writer writer)
Close the given writer, ignoring exceptions.
|
public static final int BLOCK_SIZE
public static int execute(String[] cmd, OutputStream std, OutputStream err)
public static void quietlyClose(Writer writer)
writer - the writer to closepublic static void quietlyClose(Reader reader)
reader - the reader to close