public static class CommandContext.Builder extends Object
Constructor and Description |
---|
CommandContext.Builder(byte[] command) |
CommandContext.Builder(String command)
Pass this command to a remote server as a sequence of bytes encoded using UTF-8
|
CommandContext.Builder(String command,
String encoding)
Pass this command to a remote server as a sequence of bytes encoded using the indicated encoding
|
Modifier and Type | Method and Description |
---|---|
CommandContext |
build() |
CommandContext.Builder |
ignoreExitValue(boolean ignoreExitValue) |
CommandContext.Builder |
stderr(org.codehaus.plexus.util.cli.StreamConsumer stderr) |
CommandContext.Builder |
stdin(InputStream stdin) |
CommandContext.Builder |
stdin(String stdin)
Convert the string into a
byte[] using UTF-8 encoding |
CommandContext.Builder |
stdin(String stdin,
String encoding)
Convert the string into a
byte[] using the indicated encoding |
CommandContext.Builder |
stdout(org.codehaus.plexus.util.cli.StreamConsumer stdout) |
CommandContext.Builder |
successCodes(List<Integer> successCodes) |
CommandContext.Builder |
timeout(int timeout) |
public CommandContext.Builder(String command)
public CommandContext.Builder(String command, String encoding)
public CommandContext.Builder(byte[] command)
public CommandContext.Builder stdin(String stdin)
byte[]
using UTF-8 encodingpublic CommandContext.Builder stdin(String stdin, String encoding)
byte[]
using the indicated encodingpublic CommandContext.Builder stdin(InputStream stdin)
public CommandContext.Builder timeout(int timeout)
public CommandContext.Builder stdout(org.codehaus.plexus.util.cli.StreamConsumer stdout)
public CommandContext.Builder stderr(org.codehaus.plexus.util.cli.StreamConsumer stderr)
public CommandContext.Builder ignoreExitValue(boolean ignoreExitValue)
public CommandContext.Builder successCodes(List<Integer> successCodes)
public CommandContext build()
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.