org.jboss.virtual.plugins.vfs.helpers
Class PathTokenizer

java.lang.Object
  extended by org.jboss.virtual.plugins.vfs.helpers.PathTokenizer

public class PathTokenizer
extends java.lang.Object

PathTokenizer.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Method Summary
static java.lang.String getRemainingPath(java.lang.String[] tokens, int i)
          Get the remaining path from some tokens
static java.lang.String[] getTokens(java.lang.String path)
          Get the tokens
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTokens

public static java.lang.String[] getTokens(java.lang.String path)
Get the tokens

Parameters:
path - the path
Returns:
the tokens or null if the path is empty
Throws:
java.lang.IllegalArgumentException - if the path is null, it is empty or it is a relative path

getRemainingPath

public static java.lang.String getRemainingPath(java.lang.String[] tokens,
                                                int i)
Get the remaining path from some tokens

Parameters:
tokens - the tokens
i - the current location
Returns:
the remaining path
Throws:
java.lang.IllegalArgumentException - for null tokens or i is out of range