to.etc.util
Class PathSplitter

java.lang.Object
  extended by to.etc.util.PathSplitter

public final class PathSplitter
extends java.lang.Object

Helps with splicing paths into fragments one part at a time.

Author:
jal Created on Dec 24, 2005

Constructor Summary
PathSplitter()
           
PathSplitter(java.lang.String path)
           
 
Method Summary
 boolean endsWithSlash()
           
 java.lang.String getCurrent()
           
 java.lang.String getCurrentAndRest()
           
 java.lang.String getPath()
          Return the entire input path.
 java.lang.String getRest()
           
 java.lang.String getUptoCurrent()
           
 void init(java.lang.String path)
           
 boolean isEmpty()
           
 boolean isEqual(java.lang.String str)
          Compares the current string with the specified thingy.
 boolean isRestEmpty()
           
 boolean next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathSplitter

public PathSplitter()

PathSplitter

public PathSplitter(java.lang.String path)
Method Detail

init

public void init(java.lang.String path)

getPath

public java.lang.String getPath()
Return the entire input path.

Returns:

next

public boolean next()

getCurrent

public java.lang.String getCurrent()

getCurrentAndRest

public java.lang.String getCurrentAndRest()

getRest

public java.lang.String getRest()

getUptoCurrent

public java.lang.String getUptoCurrent()

isRestEmpty

public boolean isRestEmpty()

endsWithSlash

public boolean endsWithSlash()

isEmpty

public boolean isEmpty()

isEqual

public boolean isEqual(java.lang.String str)
Compares the current string with the specified thingy.

Parameters:
str -
Returns: