org.tigris.subversion.javahl
Class Path

java.lang.Object
  extended by org.tigris.subversion.javahl.Path

public class Path
extends Object

Subversion path validation and manipulation.

Since:
1.4.0

Constructor Summary
Path()
           
 
Method Summary
static boolean isURL(String path)
          Whether a URL is valid.
static boolean isValid(String path)
          A valid path is a UTF-8 string without any control characters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Path

public Path()
Method Detail

isValid

public static boolean isValid(String path)
A valid path is a UTF-8 string without any control characters.

Returns:
Whether Subversion can store the path in a repository.

isURL

public static boolean isURL(String path)
Whether a URL is valid. Implementation may behave differently than svn_path_is_url().

Parameters:
path - The Subversion "path" to inspect.
Returns:
Whether path is a URL.
Throws:
IllegalArgumentException - If path is null.