public abstract class Path
extends java.lang.Object
Constructor and Description |
---|
Path() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getName()
Get the name of this file/directory--the last component of the path.
|
static java.lang.String |
getNameExtension(java.lang.String name)
Get the extension (the text after the period) from the specified file/directory name.
|
abstract java.lang.String |
getPathString()
Get the string representation of the full path for this file/directory.
|
java.lang.String |
toString() |
public abstract java.lang.String getName()
public abstract java.lang.String getPathString()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String getNameExtension(java.lang.String name)
name
- file/directory name