public class DataStoreUtils extends Object
Constructor and Description |
---|
DataStoreUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
stripSuffix(String value,
String suffix) |
static String |
substituteChecksum(String key)
Substitutes a placeholder with the checksum:[url] format with the checksum of the urls target.
|
static String |
substituteProfileProperty(String key,
Map<String,Map<String,String>> configs)
Substitutes a placeholder with profile:[property file]/[key], with the target value.
|
static byte[] |
toBytes(Map<String,String> source) |
static byte[] |
toBytes(Properties source) |
static Map<String,String> |
toMap(byte[] source) |
static Map<String,String> |
toMap(Properties source) |
static Properties |
toProperties(byte[] source) |
static Properties |
toProperties(Map<String,String> source) |
static Properties |
toProperties(String source) |
static String |
toString(Properties source) |
static Properties |
toStringProperties(Map<String,?> source) |
public static byte[] toBytes(Properties source)
public static Properties toProperties(byte[] source)
public static Map<String,String> toMap(Properties source)
public static Properties toProperties(Map<String,String> source)
public static Properties toStringProperties(Map<String,?> source)
public static String toString(Properties source)
public static Properties toProperties(String source)
public static String substituteChecksum(String key)
Copyright © 2011–2017 Red Hat. All rights reserved.