public class

StringEscapeUtils

extends Object
java.lang.Object
   ↳ com.android.tradefed.util.StringEscapeUtils

Class Overview

Utility class for escaping strings for specific formats. Include methods to escape strings that are being passed to the Android Shell.

Summary

Public Constructors
StringEscapeUtils()
Public Methods
static String escapeShell(String str)
Escapes a String for use in an Android shell command.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public StringEscapeUtils ()

Public Methods

public static String escapeShell (String str)

Escapes a String for use in an Android shell command.

Parameters
str the String to escape
Returns
  • the Android shell escaped String