public class ProfilesHelpers extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DELETED |
static com.fasterxml.jackson.databind.ObjectMapper |
JSON_MAPPER |
static com.fasterxml.jackson.databind.ObjectMapper |
YAML_MAPPER |
| Constructor and Description |
|---|
ProfilesHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.JsonNode |
merge(com.fasterxml.jackson.databind.JsonNode target,
com.fasterxml.jackson.databind.JsonNode source) |
static void |
merge(Properties target,
Properties source) |
static com.fasterxml.jackson.databind.JsonNode |
readJsonFile(Path path) |
static Properties |
readPropertiesFile(Path path) |
static com.fasterxml.jackson.databind.JsonNode |
readYamlFile(Path path) |
static void |
recusivelyCollectFileListing(ArrayList<String> rc,
Path base,
Path directory) |
static byte[] |
toBytes(Properties properties) |
static byte[] |
toJsonBytes(com.fasterxml.jackson.databind.JsonNode yaml) |
static byte[] |
toYamlBytes(com.fasterxml.jackson.databind.JsonNode yaml) |
public static final String DELETED
public static final com.fasterxml.jackson.databind.ObjectMapper JSON_MAPPER
public static final com.fasterxml.jackson.databind.ObjectMapper YAML_MAPPER
public static Properties readPropertiesFile(Path path) throws IOException
IOExceptionpublic static com.fasterxml.jackson.databind.JsonNode readJsonFile(Path path) throws IOException
IOExceptionpublic static com.fasterxml.jackson.databind.JsonNode readYamlFile(Path path) throws IOException
IOExceptionpublic static byte[] toBytes(Properties properties) throws IOException
IOExceptionpublic static byte[] toYamlBytes(com.fasterxml.jackson.databind.JsonNode yaml)
throws IOException
IOExceptionpublic static byte[] toJsonBytes(com.fasterxml.jackson.databind.JsonNode yaml)
throws IOException
IOExceptionpublic static void recusivelyCollectFileListing(ArrayList<String> rc, Path base, Path directory) throws IOException
IOExceptionpublic static void merge(Properties target, Properties source)
public static com.fasterxml.jackson.databind.JsonNode merge(com.fasterxml.jackson.databind.JsonNode target,
com.fasterxml.jackson.databind.JsonNode source)
Copyright © 2011–2017 Red Hat. All rights reserved.