public class DataStoreUtils extends Object
| Constructor and Description |
|---|
DataStoreUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
stripSuffix(String value,
String suffix) |
static String |
substituteBundleProperty(String key,
org.osgi.framework.BundleContext bundleContext)
Substitutes bundle property.
|
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) throws IOException
IOExceptionpublic static byte[] toBytes(Map<String,String> source) throws IOException
IOExceptionpublic static Properties toProperties(byte[] source) throws IOException
IOExceptionpublic static Map<String,String> toMap(Properties source)
public static Map<String,String> toMap(byte[] source) throws IOException
IOExceptionpublic static Properties toProperties(Map<String,String> source)
public static Properties toStringProperties(Map<String,?> source)
public static String stripSuffix(String value, String suffix) throws IOException
IOExceptionpublic static String toString(Properties source) throws IOException
IOExceptionpublic static Properties toProperties(String source) throws IOException
IOExceptionpublic static String substituteChecksum(String key)
key - public static String substituteProfileProperty(String key, Map<String,Map<String,String>> configs)
key - configs - Copyright © 2011–2014 Red Hat. All rights reserved.