src/org/jnetpcap/util/config/ConfigString.java
public boolean expandVariables(
	    String name,
	    Map<String, String> variables,
	    Properties properties) {

		while (scanNext(VO, VC) && start != -1) {

			String variable = super.substring(start + VO.length(), end);
			if (variable.equals("name")) {
				super.replace(start, end + VC.length(), name);

			} else if (variables != null && variables.containsKey(variable)) {
				super.replace(start, end + 1, variables.get(variable));

			} else {
				return false;
			}
		}

		return (start == -1) ? true : false;
	}
/**
	 * Replaces variables and properties with their values, and null if anything
	 * is not defined.
	 * 
	 * @param name
	 *          special name variable that will replace $name$ in the string
	 * @param variables
	 *          the variables
	 * @param properties
	 *          properties
	 * @return resulting string with all substitutions complete or null if any
	 *         substitution failed such as undefined referenced property
	 */
Replaces variables and properties with their values, and null if anything
is not defined.

@param name
special name variable that will replace $name$ in the string
@param variables
the variables
@param properties
properties
@return resulting string with all substitutions complete or null if any
substitution failed such as undefined referenced property
Replaces variables and properties with their values and null if anything is not defined . @param name special name variable that will replace $name$ in the string @param variables the variables @param properties properties @return resulting string with all substitutions complete or null if any substitution failed such as undefined referenced property
public boolean expandVariables(
	    String name,
	    Map<String, String> variables,
	    Properties properties) {
		while (scanNext(VO, VC) && start != -1) {
			String variable = super.substring(start + VO.length(), end);
			if (variable.equals("name")) {
				super.replace(start, end + VC.length(), name);
			} else if (variables != null && variables.containsKey(variable)) {
				super.replace(start, end + 1, variables.get(variable));
			} else {
				return false;
			}
		}
		return (start == -1) ? true : false;
	}
public boolean expandVariables ( String name , Map < String , String > variables , Properties properties ) { while ( scanNext ( VO , VC ) && start != - 1 ) { String variable = super . substring ( start + VO . length ( ) , end ) ; if ( variable . equals ( "name" ) ) { super . replace ( start , end + VC . length ( ) , name ) ; } else if ( variables != null && variables . containsKey ( variable ) ) { super . replace ( start , end + 1 , variables . get ( variable ) ) ; } else { return false ; } } return ( start == - 1 ) ? true : false ; }
Replaces variables and properties with their values, and null if anything
 is not defined.
Replaces variables and properties with their values and null if anything is not defined .