Android Utililty Methods Process Read

List of utility methods to do Process Read

Description

The list of methods to do Process Read are organized into topic(s).

Method

StringreadProcessAsString(Process proc)
read Process As String
InputStream is = new BufferedInputStream(proc.getInputStream());
StringBuffer fStr = new StringBuffer();
InputStream err = new BufferedInputStream(proc.getErrorStream());
try {
    BufferedReader reader = new BufferedReader(
            new InputStreamReader(is));
    BufferedReader ereader = new BufferedReader(
            new InputStreamReader(err));
...
ProcessBuildermakeProcessBulder(Context context, List args)
make Process Bulder
List<String> procArgs = new LinkedList<String>();
procArgs.add(getRsyncBinaryPath(context));
procArgs.addAll(args);
ProcessBuilder procBld = new ProcessBuilder(procArgs);
procBld.redirectErrorStream(true);
return procBld;