public static class StringEscapes.BashStringEscapes
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StringEscapes.BashStringEscapes.WrapBashFunction |
Constructor and Description |
---|
BashStringEscapes() |
Modifier and Type | Method and Description |
---|---|
static void |
assertValidForDoubleQuotingInBash(java.lang.String x) |
static java.lang.String |
doubleQuoteLiteralsForBash(java.lang.String... args)
transforms e.g.
|
static java.lang.String |
escapeLiteralForDoubleQuotedBash(java.lang.String unquotedInputToBeEscaped)
performs replacements on a string so that it can be legally inserted into a double-quoted bash context
(without the surrounding double quotes; see also
wrapBash(String) ) |
static boolean |
isValidForDoubleQuotingInBash(java.lang.String x) |
static java.lang.String |
unwrapBashQuotesAndEscapes(java.lang.String s)
given a string in bash notation, e.g.
|
static <any> |
wrapBash() |
static java.lang.String |
wrapBash(java.lang.String value)
wraps plain text in double quotes escaped for use in bash double-quoting
|
static void |
wrapBash(java.lang.String value,
java.lang.Appendable out) |
public static <any> wrapBash()
public static java.lang.String wrapBash(java.lang.String value)
public static void wrapBash(java.lang.String value, java.lang.Appendable out) throws java.io.IOException
java.io.IOException
wrapBash(String)
public static java.lang.String escapeLiteralForDoubleQuotedBash(java.lang.String unquotedInputToBeEscaped)
wrapBash(String)
)public static java.lang.String doubleQuoteLiteralsForBash(java.lang.String... args)
public static boolean isValidForDoubleQuotingInBash(java.lang.String x)
public static void assertValidForDoubleQuotingInBash(java.lang.String x)
public static java.lang.String unwrapBashQuotesAndEscapes(java.lang.String s)