to.etc.util
Class PathSplitter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathSplitter
public PathSplitter()
PathSplitter
public PathSplitter(java.lang.String path)
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: