|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.faunos.util.test.AbbreviatedFilepath
public class AbbreviatedFilepath
Utility for creating an abbreviated string representation of a file path.
toString()
Constructor Summary | |
---|---|
AbbreviatedFilepath(File file)
Creates a new instance with default depth of 3. |
|
AbbreviatedFilepath(File file,
int depth)
Creates a new instance with the given ( depth ) number of
subpath tokens. |
Method Summary | |
---|---|
String |
toString()
Returns the abbreviated file path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbbreviatedFilepath(File file)
AbbreviatedFilepath(File, int)
public AbbreviatedFilepath(File file, int depth)
depth
) number of
subpath tokens.
IllegalArgumentException
- if depth
is < 1 or > 1024Method Detail |
---|
public String toString()
.../path1/path2/filename
.
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |