org.apache.avalon.composition.util
Class StringHelper

java.lang.Object
  extended byorg.apache.avalon.composition.util.StringHelper

public class StringHelper
extends Object

General utilities supporting the packaging of string containing file references.

Author:
Stephen McConnell

Constructor Summary
StringHelper()
           
 
Method Summary
static String toString(File file)
          Parse a supplied file for patterns matching ${user.dir}, ${merlin.home}, and ${merlin.repository.local} and return the string using the symbolic representation.
static String toString(String name)
          Parse a supplied string for patterns matching ${user.dir}, ${merlin.home}, and ${merlin.repository.local} and return the string using the symbolic representation.
static String toString(String[] names)
          Parse a supplied string sequence for patterns matching ${user.dir}, ${merlin.home}, and ${merlin.repository.local} and return a string using the symbolic representation.
static String toString(URL url)
          Parse a supplied url for patterns matching ${user.dir}, ${merlin.home}, and ${merlin.repository.local} and return the string using the symbolic representation.
static String toString(URL[] urls)
          Parse a supplied url sequence for patterns matching ${user.dir}, ${merlin.home}, and ${merlin.repository.local} and return a string using the symbolic representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringHelper

public StringHelper()
Method Detail

toString

public static String toString(String name)
Parse a supplied string for patterns matching ${user.dir}, ${merlin.home}, and ${merlin.repository.local} and return the string using the symbolic representation.

Parameters:
name - the string to parse
Returns:
the parsed string

toString

public static String toString(File file)
Parse a supplied file for patterns matching ${user.dir}, ${merlin.home}, and ${merlin.repository.local} and return the string using the symbolic representation.

Parameters:
file - the file to parse
Returns:
the parsed string

toString

public static String toString(URL url)
Parse a supplied url for patterns matching ${user.dir}, ${merlin.home}, and ${merlin.repository.local} and return the string using the symbolic representation.

Parameters:
url - the url to parse
Returns:
the parsed string

toString

public static String toString(URL[] urls)
Parse a supplied url sequence for patterns matching ${user.dir}, ${merlin.home}, and ${merlin.repository.local} and return a string using the symbolic representation.

Parameters:
urls - the urls to parse
Returns:
the parsed string

toString

public static String toString(String[] names)
Parse a supplied string sequence for patterns matching ${user.dir}, ${merlin.home}, and ${merlin.repository.local} and return a string using the symbolic representation.

Parameters:
names - the urls to parse
Returns:
the parsed string


Copyright © Apache Software Foundation. All Rights Reserved.