public final class PathUtils extends Object
A Utility class for replacing environment variables and maniuplating file path strings.
.Constructor and Description |
---|
PathUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
doDynamicDateFormatReplacement(String string,
Metadata metadata) |
static String |
doDynamicDateReplacement(String string,
Metadata metadata) |
static String |
doDynamicDateRollReplacement(String string,
Metadata metadata)
usage format: [DATE_ADD(
)] example: [DATE_ADD(2009-12-31, yyyy-MM-dd, 1, day)] . |
static String |
doDynamicDateToMillisReplacement(String string,
Metadata metadata)
Replaces String method of format [DATE_TO_MILLIS(
|
static String |
doDynamicDateToSecsReplacement(String string,
Metadata metadata)
Replaces String method of format [DATE_TO_SECS(
|
static String |
doDynamicReplacement(String string) |
static String |
doDynamicReplacement(String string,
Metadata metadata) |
static String |
doDynamicUtcToTaiDateReplacement(String string,
Metadata metadata)
Replaces String method of format [UTC_TO_TAI(
|
static String |
replaceEnvVariables(String origPath) |
static String |
replaceEnvVariables(String origPath,
Metadata metadata) |
static String |
replaceEnvVariables(String origPath,
Metadata metadata,
boolean expand) |
public static String DELIMITER
public static String replaceEnvVariables(String origPath, Metadata metadata, boolean expand)
public static String doDynamicReplacement(String string) throws ParseException, CommonsException, CasMetadataException
public static String doDynamicReplacement(String string, Metadata metadata) throws ParseException, CommonsException, CasMetadataException
public static String doDynamicDateReplacement(String string, Metadata metadata) throws CasMetadataException, CommonsException
CasMetadataException
CommonsException
public static String doDynamicDateRollReplacement(String string, Metadata metadata) throws ParseException, CasMetadataException, CommonsException
public static String doDynamicDateFormatReplacement(String string, Metadata metadata) throws ParseException, CasMetadataException, CommonsException
public static String doDynamicUtcToTaiDateReplacement(String string, Metadata metadata) throws ParseException, CommonsException, CasMetadataException
public static String doDynamicDateToSecsReplacement(String string, Metadata metadata) throws CommonsException, ParseException, CasMetadataException
public static String doDynamicDateToMillisReplacement(String string, Metadata metadata) throws ParseException, CommonsException, CasMetadataException
Copyright © 1999–2017 Apache OODT. All rights reserved.